lauraibnz commited on
Commit
4518a48
1 Parent(s): 431cf64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,14 +27,14 @@ def predict(midi_file=None, prompt="", negative_prompt="", audio_length_in_s=5,
27
  audio_length_in_s=audio_length_in_s,
28
  num_inference_steps=num_inference_steps,
29
  controlnet_conditioning_scale=float(controlnet_conditioning_scale),
30
- guess_mode=guess_mode
31
  )
32
  return (16000, audio.audios.T)
33
 
34
  demo = gr.Interface(fn=predict, inputs=[
35
  gr.File(file_types=[".mid"]),
36
  "text",
37
- gr.Textbox(label="negative prompt")
38
  gr.Slider(0, 30, value=5, step=5, label="duration (seconds)"),
39
  gr.Slider(0.0, 1.0, value=1.0, step=0.1, label="conditioning scale"),
40
  gr.Slider(0, 50, value=20, step=0.1, label="inference steps"),
 
27
  audio_length_in_s=audio_length_in_s,
28
  num_inference_steps=num_inference_steps,
29
  controlnet_conditioning_scale=float(controlnet_conditioning_scale),
30
+ guess_mode=guess_mode,
31
  )
32
  return (16000, audio.audios.T)
33
 
34
  demo = gr.Interface(fn=predict, inputs=[
35
  gr.File(file_types=[".mid"]),
36
  "text",
37
+ gr.Textbox(label="negative prompt"),
38
  gr.Slider(0, 30, value=5, step=5, label="duration (seconds)"),
39
  gr.Slider(0.0, 1.0, value=1.0, step=0.1, label="conditioning scale"),
40
  gr.Slider(0, 50, value=20, step=0.1, label="inference steps"),