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