Spaces:
No application file
No application file
Delete up.py
Browse files
up.py
DELETED
|
@@ -1,23 +0,0 @@
|
|
| 1 |
-
from huggingface_hub import HfApi
|
| 2 |
-
|
| 3 |
-
api = HfApi()
|
| 4 |
-
|
| 5 |
-
# 1. Apne repo ka path yahan likhein (e.g., "username/my-windows-repo")
|
| 6 |
-
repo_id = "YOUR_USERNAME/YOUR_REPO_NAME"
|
| 7 |
-
|
| 8 |
-
# 2. Archive.org ka direct link
|
| 9 |
-
source_url = "https://archive.org/download/windows-7x-86-supernano-final/Windows7SuperNanoLite.iso"
|
| 10 |
-
|
| 11 |
-
print("Remote ki upload start ho raha hai...")
|
| 12 |
-
|
| 13 |
-
try:
|
| 14 |
-
api.add_from_url(
|
| 15 |
-
url=source_url,
|
| 16 |
-
path_in_repo="Windows7SuperNanoLite.iso", # Repo mein kis naam se dikhe
|
| 17 |
-
repo_id=repo_id,
|
| 18 |
-
repo_type="model" # Agar aapne 'model' repo banaya hai
|
| 19 |
-
)
|
| 20 |
-
print("Request submit ho gayi hai! Hugging Face backend par file transfer kar raha hai.")
|
| 21 |
-
print(f"Apni files yahan check karein: https://huggingface.co/{repo_id}")
|
| 22 |
-
except Exception as e:
|
| 23 |
-
print(f"Kuch error aaya: {e}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|