Update download_model.py
Browse files- download_model.py +2 -2
download_model.py
CHANGED
@@ -37,8 +37,8 @@ def get_voice_models():
|
|
37 |
"""Downloads missing voice models from the Hugging Face repository."""
|
38 |
|
39 |
# Create or empty the 'voices' directory
|
40 |
-
if os.path.exists(VOICES_DIR):
|
41 |
-
|
42 |
os.makedirs(VOICES_DIR, exist_ok=True)
|
43 |
|
44 |
# Get list of files from the repository
|
|
|
37 |
"""Downloads missing voice models from the Hugging Face repository."""
|
38 |
|
39 |
# Create or empty the 'voices' directory
|
40 |
+
# if os.path.exists(VOICES_DIR):
|
41 |
+
# shutil.rmtree(VOICES_DIR)
|
42 |
os.makedirs(VOICES_DIR, exist_ok=True)
|
43 |
|
44 |
# Get list of files from the repository
|