Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,7 @@ def process_audio(file, model, prompt, start, length):
|
|
| 10 |
demo = gr.Interface(
|
| 11 |
fn=process_audio,
|
| 12 |
inputs=[
|
|
|
|
| 13 |
gr.Audio(type="filepath", label="Upload Audio File"),
|
| 14 |
gr.Radio(choices=['AudioLDM2', 'StableAudio'], label='Choose a Model for Processing'),
|
| 15 |
gr.Textbox(label="Prompt", placeholder="Enter your text prompt here"),
|
|
@@ -20,10 +21,10 @@ demo = gr.Interface(
|
|
| 20 |
title="Drums Generation in Different Models",
|
| 21 |
description="Upload your audio file and process it with AudioLDM2 or StableAudio based on your prompt and settings.",
|
| 22 |
examples=[
|
| 23 |
-
["
|
| 24 |
-
["
|
| 25 |
-
["
|
| 26 |
-
["
|
| 27 |
]
|
| 28 |
)
|
| 29 |
demo.launch()
|
|
|
|
| 10 |
demo = gr.Interface(
|
| 11 |
fn=process_audio,
|
| 12 |
inputs=[
|
| 13 |
+
# gr.Audio(type="filepath", label="Upload Audio File"),
|
| 14 |
gr.Audio(type="filepath", label="Upload Audio File"),
|
| 15 |
gr.Radio(choices=['AudioLDM2', 'StableAudio'], label='Choose a Model for Processing'),
|
| 16 |
gr.Textbox(label="Prompt", placeholder="Enter your text prompt here"),
|
|
|
|
| 21 |
title="Drums Generation in Different Models",
|
| 22 |
description="Upload your audio file and process it with AudioLDM2 or StableAudio based on your prompt and settings.",
|
| 23 |
examples=[
|
| 24 |
+
["goodres.wav", "AudioLDM2", "Generate a rock beat", 0.0, 10.0],
|
| 25 |
+
["goodres.wav", "StableAudio", "Create a serene soundscape", 5.0, 15.0],
|
| 26 |
+
["goodres.wav", "AudioLDM2", "Simulate a forest ambiance", 10.0, 20.0],
|
| 27 |
+
["goodres.wav", "StableAudio", "Recreate a gentle rainfall", 0.0, 25.0]
|
| 28 |
]
|
| 29 |
)
|
| 30 |
demo.launch()
|