Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ def download_from_url(url, model):
|
|
138 |
return "No zipfile found.", {"choices":show_available("assets/weights"),"__type__":"update"}
|
139 |
shutil.rmtree("zips")
|
140 |
shutil.rmtree("unzips")
|
141 |
-
return "Success.", {"choices":show_available("assets/weights"),"__type__":"update"}
|
142 |
except:
|
143 |
return "There's been an error.", {"choices":show_available("assets/weights"),"__type__":"update"}
|
144 |
|
|
|
138 |
return "No zipfile found.", {"choices":show_available("assets/weights"),"__type__":"update"}
|
139 |
shutil.rmtree("zips")
|
140 |
shutil.rmtree("unzips")
|
141 |
+
return f"Success download {model_rename} voice models.", {"choices":show_available("assets/weights"),"__type__":"update"}
|
142 |
except:
|
143 |
return "There's been an error.", {"choices":show_available("assets/weights"),"__type__":"update"}
|
144 |
|