Spaces:
Runtime error
Runtime error
kevinwang676
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import spaces
|
2 |
import os
|
3 |
import glob
|
@@ -473,6 +474,8 @@ def rvc_infer_music(url, model_name, song_name, split_model, f0_up_key, vocal_vo
|
|
473 |
model_name = model_name.strip().replace(" ", "")
|
474 |
if url.startswith('https://download.openxlab.org.cn/models/'):
|
475 |
zip_path = get_username(url) + "-" + get_file_name(url)
|
|
|
|
|
476 |
else:
|
477 |
zip_path = get_file_name(url)
|
478 |
global singers
|
@@ -583,4 +586,4 @@ with app:
|
|
583 |
''')
|
584 |
|
585 |
app.queue(max_size=40, api_open=False)
|
586 |
-
app.launch(max_threads=400, show_error=True)
|
|
|
1 |
+
|
2 |
import spaces
|
3 |
import os
|
4 |
import glob
|
|
|
474 |
model_name = model_name.strip().replace(" ", "")
|
475 |
if url.startswith('https://download.openxlab.org.cn/models/'):
|
476 |
zip_path = get_username(url) + "-" + get_file_name(url)
|
477 |
+
elif url.startswith('https://huggingface.co/'):
|
478 |
+
zip_path = get_username_hf(url) + "-" + get_file_name(url)
|
479 |
else:
|
480 |
zip_path = get_file_name(url)
|
481 |
global singers
|
|
|
586 |
''')
|
587 |
|
588 |
app.queue(max_size=40, api_open=False)
|
589 |
+
app.launch(max_threads=400, show_error=True)
|