Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,12 +14,12 @@ def predict(prompt):
|
|
| 14 |
wav = wav_bytes_from_spectrogram_image(spec)
|
| 15 |
with open("output.wav", "wb") as f:
|
| 16 |
f.write(wav[0].getbuffer())
|
| 17 |
-
return
|
| 18 |
|
| 19 |
gr.Interface(
|
| 20 |
predict,
|
| 21 |
inputs="text",
|
| 22 |
-
outputs=[gr.
|
| 23 |
title="Riffusion Text-to-Music",
|
| 24 |
description="Describe a musical prompt, generate music by getting a Riffusion spectrogram and its corresponding sound"
|
| 25 |
).queue(max_size=32, concurrency_count=20).launch(debug=True)
|
|
|
|
| 14 |
wav = wav_bytes_from_spectrogram_image(spec)
|
| 15 |
with open("output.wav", "wb") as f:
|
| 16 |
f.write(wav[0].getbuffer())
|
| 17 |
+
return 'output.wav'
|
| 18 |
|
| 19 |
gr.Interface(
|
| 20 |
predict,
|
| 21 |
inputs="text",
|
| 22 |
+
outputs=[gr.Audio(type='filepath')],
|
| 23 |
title="Riffusion Text-to-Music",
|
| 24 |
description="Describe a musical prompt, generate music by getting a Riffusion spectrogram and its corresponding sound"
|
| 25 |
).queue(max_size=32, concurrency_count=20).launch(debug=True)
|