Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -138,9 +138,9 @@ 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
|
142 |
except:
|
143 |
-
return "There's been an error.", {"choices":show_available("assets/weights"),"__type__":"update"}
|
144 |
|
145 |
def import_from_name(model):
|
146 |
try:
|
@@ -243,8 +243,8 @@ with gr.Blocks() as app:
|
|
243 |
with gr.Row():
|
244 |
with gr.Column():
|
245 |
gr.Markdown("# RVC PlayGround 🎮")
|
246 |
-
with gr.Column():
|
247 |
-
gr.HTML("<a href='https://ko-fi.com/rejekts' target='_blank'><img src='file/kofi_button.png' alt='🤝 Support Me'></a>")
|
248 |
with gr.Row():
|
249 |
with gr.Column():
|
250 |
with gr.Tabs():
|
@@ -296,9 +296,4 @@ with gr.Blocks() as app:
|
|
296 |
with gr.Row():
|
297 |
convert_button.click(convert, inputs=inputs,outputs=[audio_picker,audio_player])
|
298 |
|
299 |
-
app.queue(
|
300 |
-
max_size=20
|
301 |
-
).launch(
|
302 |
-
debug=True,
|
303 |
-
share=True
|
304 |
-
)
|
|
|
138 |
return "No zipfile found.", {"choices":show_available("assets/weights"),"__type__":"update"}
|
139 |
shutil.rmtree("zips")
|
140 |
shutil.rmtree("unzips")
|
141 |
+
return "Success download the voice models.", {"choices":show_available("assets/weights"),"__type__":"update"}
|
142 |
except:
|
143 |
+
return "upss There's been an error.", {"choices":show_available("assets/weights"),"__type__":"update"}
|
144 |
|
145 |
def import_from_name(model):
|
146 |
try:
|
|
|
243 |
with gr.Row():
|
244 |
with gr.Column():
|
245 |
gr.Markdown("# RVC PlayGround 🎮")
|
246 |
+
#with gr.Column():
|
247 |
+
#gr.HTML("<a href='https://ko-fi.com/rejekts' target='_blank'><img src='file/kofi_button.png' alt='🤝 Support Me'></a>")
|
248 |
with gr.Row():
|
249 |
with gr.Column():
|
250 |
with gr.Tabs():
|
|
|
296 |
with gr.Row():
|
297 |
convert_button.click(convert, inputs=inputs,outputs=[audio_picker,audio_player])
|
298 |
|
299 |
+
app.queue(max_size=20).launch(debug=True, share=True)
|
|
|
|
|
|
|
|
|
|