Update app.py

#49
by reach-vb HF staff - opened
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -86,7 +86,7 @@ with iface:
86
  label="Seed",
87
  info="Change this value (any integer number) will lead to a different generation result.",
88
  )
89
- # duration = gr.Slider(5, 15, value=10, step=2.5, label="Duration (seconds)")
90
  guidance_scale = gr.Slider(
91
  0,
92
  7,
@@ -109,8 +109,8 @@ with iface:
109
 
110
  btn.click(
111
  text2audio,
112
- # inputs=[textbox, negative_textbox, duration, guidance_scale, seed, n_candidates],
113
- inputs=[textbox, negative_textbox, 10, guidance_scale, seed, n_candidates],
114
  outputs=[outputs],
115
  )
116
 
 
86
  label="Seed",
87
  info="Change this value (any integer number) will lead to a different generation result.",
88
  )
89
+ duration = gr.Slider(5, 15, value=10, step=2.5, label="Duration (seconds)")
90
  guidance_scale = gr.Slider(
91
  0,
92
  7,
 
109
 
110
  btn.click(
111
  text2audio,
112
+ inputs=[textbox, negative_textbox, duration, guidance_scale, seed, n_candidates],
113
+ # inputs=[textbox, negative_textbox, 10, guidance_scale, seed, n_candidates],
114
  outputs=[outputs],
115
  )
116