michaelpiro1 commited on
Commit
78cf1d9
·
verified ·
1 Parent(s): 4d34a6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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
- ["example.wav", "AudioLDM2", "Generate a rock beat", 0.0, 10.0],
24
- ["example.wav", "StableAudio", "Create a serene soundscape", 5.0, 15.0],
25
- ["example.wav", "AudioLDM2", "Simulate a forest ambiance", 10.0, 20.0],
26
- ["example.wav", "StableAudio", "Recreate a gentle rainfall", 0.0, 25.0]
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()