Forgot to add steps=1 to Candidates slider

This commit is contained in:
mrq 2023-02-05 04:27:20 +00:00
parent 84a9758ab9
commit cab32e1f45

6
app.py
View File

@ -129,7 +129,7 @@ def main():
type="filepath", type="filepath",
) )
candidates = gr.Slider(value=1, minimum=1, maximum=6, label="Candidates") candidates = gr.Slider(value=1, minimum=1, maximum=6, step=1, label="Candidates")
seed = gr.Number(value=0, precision=0, label="Seed") seed = gr.Number(value=0, precision=0, label="Seed")
preset = gr.Radio( preset = gr.Radio(
@ -153,6 +153,10 @@ def main():
inputs=prompt, inputs=prompt,
outputs=emotion outputs=emotion
) )
mic_audio.change(fn=lambda value: gr.update(value="microphone"),
inputs=mic_audio,
outputs=voice
)
preset.change(fn=update_presets, preset.change(fn=update_presets,
inputs=preset, inputs=preset,