Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -246,7 +246,6 @@ 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 |
-
output = [gr.Audio(label="Generated Music"),gr.Audio(label="Generated Music"),gr.Audio(label="Generated Music"),gr.Audio(label="Generated Music"),gr.Audio(label="Generated Music")],
|
| 250 |
submit.click(predict_full,
|
| 251 |
inputs=[model, text, melody, duration, topk, topp, temperature, cfg_coef],
|
| 252 |
outputs=[output])
|
|
@@ -281,7 +280,11 @@ def ui_full(launch_kwargs):
|
|
| 281 |
],
|
| 282 |
],
|
| 283 |
inputs=[text, melody, model],
|
| 284 |
-
outputs=[
|
|
|
|
|
|
|
|
|
|
|
|
|
| 285 |
)
|
| 286 |
gr.Markdown(
|
| 287 |
"""
|
|
|
|
| 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=[output])
|
|
|
|
| 280 |
],
|
| 281 |
],
|
| 282 |
inputs=[text, melody, model],
|
| 283 |
+
outputs=[gr.Audio(type='filepath',label="Generated Music"),
|
| 284 |
+
gr.Audio(type='filepath',label="Vocal Music"),
|
| 285 |
+
gr.Audio(type='filepath',label="base Music"),
|
| 286 |
+
gr.Audio(type='filepath',label="drum Music"),
|
| 287 |
+
gr.Audio(type='filepath',label="other Music")]
|
| 288 |
)
|
| 289 |
gr.Markdown(
|
| 290 |
"""
|