Spaces:
Runtime error
Runtime error
Delete Fantasy_talking/download_all_models.py
Browse files
Fantasy_talking/download_all_models.py
DELETED
|
@@ -1,18 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
import requests
|
| 3 |
-
|
| 4 |
-
def download_model():
|
| 5 |
-
url = "https://huggingface.co/wedyanessam/fantasy-talking-model2/resolve/main/fantasytalking_model.ckpt"
|
| 6 |
-
output_path = "Fantasy_talking/fantasytalking_model.ckpt"
|
| 7 |
-
|
| 8 |
-
if not os.path.exists(output_path):
|
| 9 |
-
print("Downloading FantasyTalking model...")
|
| 10 |
-
response = requests.get(url)
|
| 11 |
-
with open(output_path, "wb") as f:
|
| 12 |
-
f.write(response.content)
|
| 13 |
-
print("Download completed.")
|
| 14 |
-
else:
|
| 15 |
-
print("Model already exists.")
|
| 16 |
-
|
| 17 |
-
if __name__ == "__main__":
|
| 18 |
-
download_model()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|