Spaces:
Runtime error
Runtime error
pengdaqian
commited on
Commit
·
a1ea1e5
1
Parent(s):
62d9956
fix
Browse files
app.py
CHANGED
@@ -245,20 +245,21 @@ with app:
|
|
245 |
"""
|
246 |
)
|
247 |
|
248 |
-
with gr.
|
249 |
-
|
|
|
250 |
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
|
255 |
-
|
256 |
|
257 |
-
|
258 |
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
|
264 |
app.launch()
|
|
|
245 |
"""
|
246 |
)
|
247 |
|
248 |
+
with gr.Box():
|
249 |
+
with gr.Column():
|
250 |
+
sid = gr.Dropdown(label="Singer", choices=["22", "33", "47", "51"], value="47")
|
251 |
|
252 |
+
vc_input2 = gr.Textbox(label="Music Name")
|
253 |
+
vc_search = gr.Button("Auto Search", variant="primary")
|
254 |
+
vc_input3 = gr.Audio(label="Upload Music Yourself")
|
255 |
|
256 |
+
vc_search.click(auto_search, [vc_input2], [vc_input3])
|
257 |
|
258 |
+
vc_submit = gr.Button("Convert", variant="primary")
|
259 |
|
260 |
+
with gr.Column():
|
261 |
+
vc_output1 = gr.Textbox(label="Run Status")
|
262 |
+
vc_output2 = gr.Audio(label="Result Audio")
|
263 |
+
vc_submit.click(svc_main, [sid, vc_input3], [vc_output1, vc_output2])
|
264 |
|
265 |
app.launch()
|