Spaces:
Running
Running
kevinwang676
commited on
Commit
•
a30da30
1
Parent(s):
022abcc
Update app.py
Browse files
app.py
CHANGED
@@ -27,16 +27,15 @@ from vc_infer_pipeline import VC
|
|
27 |
from config import Config
|
28 |
config = Config()
|
29 |
logging.getLogger("numba").setLevel(logging.WARNING)
|
30 |
-
|
31 |
-
limitation = False
|
32 |
|
33 |
audio_mode = []
|
34 |
f0method_mode = []
|
35 |
f0method_info = ""
|
36 |
if limitation is True:
|
37 |
audio_mode = ["Upload audio", "TTS Audio"]
|
38 |
-
f0method_mode = ["pm", "harvest"]
|
39 |
-
f0method_info = "PM is fast, Harvest is good but extremely slow. (Default:
|
40 |
else:
|
41 |
audio_mode = ["Input path", "Upload audio", "Youtube", "TTS Audio"]
|
42 |
f0method_mode = ["pm", "harvest", "crepe"]
|
@@ -390,7 +389,7 @@ if __name__ == '__main__':
|
|
390 |
label="Pitch extraction algorithm",
|
391 |
info=f0method_info,
|
392 |
choices=f0method_mode,
|
393 |
-
value="
|
394 |
interactive=True
|
395 |
)
|
396 |
index_rate1 = gr.Slider(
|
|
|
27 |
from config import Config
|
28 |
config = Config()
|
29 |
logging.getLogger("numba").setLevel(logging.WARNING)
|
30 |
+
limitation = os.getenv("SYSTEM") == "spaces"
|
|
|
31 |
|
32 |
audio_mode = []
|
33 |
f0method_mode = []
|
34 |
f0method_info = ""
|
35 |
if limitation is True:
|
36 |
audio_mode = ["Upload audio", "TTS Audio"]
|
37 |
+
f0method_mode = ["pm", "harvest", "crepe"]
|
38 |
+
f0method_info = "PM is fast, Harvest is good but extremely slow. (Default: Crepe)"
|
39 |
else:
|
40 |
audio_mode = ["Input path", "Upload audio", "Youtube", "TTS Audio"]
|
41 |
f0method_mode = ["pm", "harvest", "crepe"]
|
|
|
389 |
label="Pitch extraction algorithm",
|
390 |
info=f0method_info,
|
391 |
choices=f0method_mode,
|
392 |
+
value="crepe",
|
393 |
interactive=True
|
394 |
)
|
395 |
index_rate1 = gr.Slider(
|