Spaces:
Sleeping
Sleeping
fix the bugs
Browse files- app.py +1 -1
- gradio_components/prediction.py +1 -1
app.py
CHANGED
|
@@ -136,7 +136,7 @@ def UI():
|
|
| 136 |
)
|
| 137 |
with gr.Row():
|
| 138 |
submit = gr.Button("Generate Music")
|
| 139 |
-
output = gr.Audio("listen to the generated music")
|
| 140 |
|
| 141 |
submit.click(
|
| 142 |
fn=predict,
|
|
|
|
| 136 |
)
|
| 137 |
with gr.Row():
|
| 138 |
submit = gr.Button("Generate Music")
|
| 139 |
+
output = gr.Audio("listen to the generated music", type="filepath")
|
| 140 |
|
| 141 |
submit.click(
|
| 142 |
fn=predict,
|
gradio_components/prediction.py
CHANGED
|
@@ -103,4 +103,4 @@ def predict(model_path, text, melody, duration, topk, topp, temperature, target_
|
|
| 103 |
top_p=topp,
|
| 104 |
temperature=temperature,
|
| 105 |
gradio_progress=progress)
|
| 106 |
-
return wavs
|
|
|
|
| 103 |
top_p=topp,
|
| 104 |
temperature=temperature,
|
| 105 |
gradio_progress=progress)
|
| 106 |
+
return wavs[0]
|