Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -246,9 +246,13 @@ def ui_full(launch_kwargs):
|
|
| 246 |
temperature = gr.Number(label="Temperature", value=1.0, interactive=True)
|
| 247 |
cfg_coef = gr.Number(label="Classifier Free Guidance", value=3.0, interactive=True)
|
| 248 |
with gr.Column():
|
| 249 |
-
|
| 250 |
inputs=[model, text, melody, duration, topk, topp, temperature, cfg_coef],
|
| 251 |
-
outputs=[
|
|
|
|
|
|
|
|
|
|
|
|
|
| 252 |
radio.change(toggle_audio_src, radio, [melody], queue=False, show_progress=False)
|
| 253 |
gr.Examples(
|
| 254 |
fn=predict_full,
|
|
|
|
| 246 |
temperature = gr.Number(label="Temperature", value=1.0, interactive=True)
|
| 247 |
cfg_coef = gr.Number(label="Classifier Free Guidance", value=3.0, interactive=True)
|
| 248 |
with gr.Column():
|
| 249 |
+
submit.click(predict_full,
|
| 250 |
inputs=[model, text, melody, duration, topk, topp, temperature, cfg_coef],
|
| 251 |
+
outputs=[gr.Audio(type='filepath',label="Generated Music"),
|
| 252 |
+
gr.Audio(type='filepath',label="Vocal Music"),
|
| 253 |
+
gr.Audio(type='filepath',label="base Music"),
|
| 254 |
+
gr.Audio(type='filepath',label="drum Music"),
|
| 255 |
+
gr.Audio(type='filepath',label="other Music")])
|
| 256 |
radio.change(toggle_audio_src, radio, [melody], queue=False, show_progress=False)
|
| 257 |
gr.Examples(
|
| 258 |
fn=predict_full,
|