From cab32e1f45c1933eee3c888232c9aeff71022adb Mon Sep 17 00:00:00 2001 From: mrq Date: Sun, 5 Feb 2023 04:27:20 +0000 Subject: [PATCH] Forgot to add steps=1 to Candidates slider --- app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 95d3f4e..8c8efe8 100755 --- a/app.py +++ b/app.py @@ -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,