Spaces:
Runtime error
Runtime error
xJuuzouYTx
commited on
Commit
•
4dc2207
1
Parent(s):
46a6192
[ADD] download model error message
Browse files- models/model.py +4 -0
models/model.py
CHANGED
@@ -95,6 +95,10 @@ def infer(model, f0_method, audio_file, index_rate, vc_transform0, protect0, res
|
|
95 |
|
96 |
def post_model(name, model_url, version, creator):
|
97 |
modelname = model_downloader(model_url, zips_folder, unzips_folder)
|
|
|
|
|
|
|
|
|
98 |
model_files = get_model(unzips_folder, modelname)
|
99 |
|
100 |
if not model_files:
|
|
|
95 |
|
96 |
def post_model(name, model_url, version, creator):
|
97 |
modelname = model_downloader(model_url, zips_folder, unzips_folder)
|
98 |
+
|
99 |
+
if not modelname:
|
100 |
+
return "No se ha podido descargar el modelo, intenta con otro enlace o intentalo más tarde."
|
101 |
+
|
102 |
model_files = get_model(unzips_folder, modelname)
|
103 |
|
104 |
if not model_files:
|