Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def generate_music(prompt, duration):
|
|
34 |
# Создание интерфейса Gradio
|
35 |
iface = gr.Interface(
|
36 |
fn=generate_music,
|
37 |
-
inputs=["
|
38 |
outputs=gr.outputs.Audio(type="auto", label="Generated Music")
|
39 |
)
|
40 |
|
|
|
34 |
# Создание интерфейса Gradio
|
35 |
iface = gr.Interface(
|
36 |
fn=generate_music,
|
37 |
+
inputs=[gr.inputs.Textbox(label="Prompt"), gr.inputs.Slider(minimum=5, maximum=350, step=1, default=30, label="Duration (seconds)")],
|
38 |
outputs=gr.outputs.Audio(type="auto", label="Generated Music")
|
39 |
)
|
40 |
|