Spaces:
Sleeping
Sleeping
handler
Browse files- src/webui.py +5 -3
src/webui.py
CHANGED
|
@@ -22,11 +22,13 @@ def download_and_extract_model(model_url, model_name, progress=gr.Progress()):
|
|
| 22 |
try:
|
| 23 |
os.makedirs(rvc_models_dir, exist_ok=True)
|
| 24 |
|
|
|
|
|
|
|
|
|
|
| 25 |
if os.path.exists(extraction_folder):
|
| 26 |
model_name = model_name + str(random.randint(0, 1000))
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
zip_path = os.path.join(rvc_models_dir, f'{model_name}.zip')
|
| 30 |
|
| 31 |
progress(0, desc=f'[~] Downloading voice model with name {model_name}...')
|
| 32 |
|
|
|
|
| 22 |
try:
|
| 23 |
os.makedirs(rvc_models_dir, exist_ok=True)
|
| 24 |
|
| 25 |
+
extraction_folder = os.path.join(rvc_models_dir, model_name)
|
| 26 |
+
zip_path = os.path.join(rvc_models_dir, f'{model_name}.zip')
|
| 27 |
+
|
| 28 |
if os.path.exists(extraction_folder):
|
| 29 |
model_name = model_name + str(random.randint(0, 1000))
|
| 30 |
+
extraction_folder = os.path.join(rvc_models_dir, model_name)
|
| 31 |
+
zip_path = os.path.join(rvc_models_dir, f'{model_name}.zip')
|
|
|
|
| 32 |
|
| 33 |
progress(0, desc=f'[~] Downloading voice model with name {model_name}...')
|
| 34 |
|