Spaces:
Runtime error
Runtime error
Update app.py (#49)
Browse files- Update app.py (adf994b569a5592fb0dc761d1443d43997ccb11c)
Co-authored-by: Vaibhav Srivastav <reach-vb@users.noreply.huggingface.co>
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 |
-
|
90 |
guidance_scale = gr.Slider(
|
91 |
0,
|
92 |
7,
|
@@ -109,8 +109,8 @@ with iface:
|
|
109 |
|
110 |
btn.click(
|
111 |
text2audio,
|
112 |
-
|
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 |
|