Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -235,9 +235,9 @@ with iface:
|
|
235 |
|
236 |
with gr.Accordion("Click to modify detailed configurations", open=False):
|
237 |
seed = gr.Number(value=45, label="Change this value (any integer number) will lead to a different generation result.")
|
238 |
-
duration = gr.Slider(2.5, 10, value=
|
239 |
guidance_scale = gr.Slider(0, 4, value=2.5, step=0.5, label="Guidance scale (Large => better quality and relavancy to text; Small => better diversity)")
|
240 |
-
n_candidates = gr.Slider(1,
|
241 |
# model_name = gr.Dropdown(
|
242 |
# ["audioldm-m-text-ft", "audioldm-s-text-ft", "audioldm-m-full","audioldm-s-full-v2", "audioldm-s-full", "audioldm-l-full"], value="audioldm-m-full", label="Choose the model to use. audioldm-m-text-ft and audioldm-s-text-ft are recommanded. -s- means small, -m- means medium and -l- means large",
|
243 |
# )
|
|
|
235 |
|
236 |
with gr.Accordion("Click to modify detailed configurations", open=False):
|
237 |
seed = gr.Number(value=45, label="Change this value (any integer number) will lead to a different generation result.")
|
238 |
+
duration = gr.Slider(2.5, 10, value=5, step=2.5, label="Duration (seconds)")
|
239 |
guidance_scale = gr.Slider(0, 4, value=2.5, step=0.5, label="Guidance scale (Large => better quality and relavancy to text; Small => better diversity)")
|
240 |
+
n_candidates = gr.Slider(1, 3, value=3, step=1, label="Automatic quality control. This number control the number of candidates (e.g., generate three audios and choose the best to show you). A Larger value usually lead to better quality with heavier computation")
|
241 |
# model_name = gr.Dropdown(
|
242 |
# ["audioldm-m-text-ft", "audioldm-s-text-ft", "audioldm-m-full","audioldm-s-full-v2", "audioldm-s-full", "audioldm-l-full"], value="audioldm-m-full", label="Choose the model to use. audioldm-m-text-ft and audioldm-s-text-ft are recommanded. -s- means small, -m- means medium and -l- means large",
|
243 |
# )
|