1
1
forked from mrq/tortoise-tts

Forgot to add steps=1 to Candidates slider

This commit is contained in:
mrq 2023-02-05 04:27:20 +00:00
parent 111c45b181
commit 26daca3dc6

6
app.py
View File

@ -129,7 +129,7 @@ def main():
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")
preset = gr.Radio(
@ -153,6 +153,10 @@ def main():
inputs=prompt,
outputs=emotion
)
mic_audio.change(fn=lambda value: gr.update(value="microphone"),
inputs=mic_audio,
outputs=voice
)
preset.change(fn=update_presets,
inputs=preset,