Spaces:
Running
Running
Ryouko65777
commited on
Commit
•
2291369
1
Parent(s):
11b6361
Update app.py
Browse files
app.py
CHANGED
@@ -7,19 +7,7 @@ main_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
7 |
|
8 |
|
9 |
|
10 |
-
f0_method_tool =
|
11 |
-
"crepe",
|
12 |
-
"harvest",
|
13 |
-
"mangio-crepe",
|
14 |
-
"rmvpe",
|
15 |
-
"rmvpe+",
|
16 |
-
"fcpe",
|
17 |
-
"fcpe_legacy",
|
18 |
-
"hybrid[mangio-crepe+rmvpe]",
|
19 |
-
"hybrid[mangio-crepe+fcpe]",
|
20 |
-
"hybrid[rmvpe+fcpe]",
|
21 |
-
"hybrid[mangio-crepe+rmvpe+fcpe]",
|
22 |
-
]
|
23 |
|
24 |
|
25 |
|
@@ -73,7 +61,24 @@ with gr.Blocks() as demo:
|
|
73 |
with gr.Row():
|
74 |
model_name = gr.Textbox(label="Model Name")
|
75 |
f0_change = gr.Number(label="Pitch Change (F0 Change)", value=0)
|
76 |
-
f0_method = gr.Dropdown(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
min_pitch = gr.Textbox(label="Min Pitch", value="50")
|
78 |
max_pitch = gr.Textbox(label="Max Pitch", value="1100")
|
79 |
crepe_hop_length = gr.Number(label="CREPE Hop Length", value=120)
|
|
|
7 |
|
8 |
|
9 |
|
10 |
+
f0_method_tool =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
|
13 |
|
|
|
61 |
with gr.Row():
|
62 |
model_name = gr.Textbox(label="Model Name")
|
63 |
f0_change = gr.Number(label="Pitch Change (F0 Change)", value=0)
|
64 |
+
f0_method = gr.Dropdown(
|
65 |
+
label="F0 Method",
|
66 |
+
choices=
|
67 |
+
[
|
68 |
+
"crepe",
|
69 |
+
"harvest",
|
70 |
+
"mangio-crepe",
|
71 |
+
"rmvpe",
|
72 |
+
"rmvpe+",
|
73 |
+
"fcpe",
|
74 |
+
"fcpe_legacy",
|
75 |
+
"hybrid[mangio-crepe+rmvpe]",
|
76 |
+
"hybrid[mangio-crepe+fcpe]",
|
77 |
+
"hybrid[rmvpe+fcpe]",
|
78 |
+
"hybrid[mangio-crepe+rmvpe+fcpe]",
|
79 |
+
],
|
80 |
+
value="fcpe",
|
81 |
+
)
|
82 |
min_pitch = gr.Textbox(label="Min Pitch", value="50")
|
83 |
max_pitch = gr.Textbox(label="Max Pitch", value="1100")
|
84 |
crepe_hop_length = gr.Number(label="CREPE Hop Length", value=120)
|