Spaces:
Running
Running
Update download_model.py
Browse files- download_model.py +0 -4
download_model.py
CHANGED
|
@@ -12,10 +12,6 @@ os.makedirs(cache_dir, exist_ok=True)
|
|
| 12 |
def get_voice_models():
|
| 13 |
# Ensure the 'voices' directory exists
|
| 14 |
voices_dir = './KOKORO/voices'
|
| 15 |
-
if os.path.exists(voices_dir):
|
| 16 |
-
shutil.rmtree(voices_dir)
|
| 17 |
-
os.makedirs(voices_dir, exist_ok=True)
|
| 18 |
-
|
| 19 |
# Get the list of all files
|
| 20 |
files = list_repo_files(repo_id)
|
| 21 |
|
|
|
|
| 12 |
def get_voice_models():
|
| 13 |
# Ensure the 'voices' directory exists
|
| 14 |
voices_dir = './KOKORO/voices'
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
# Get the list of all files
|
| 16 |
files = list_repo_files(repo_id)
|
| 17 |
|