jayaspjacob Claude Opus 4.8 (1M context) commited on
Commit ·
6e880ef
1
Parent(s): e74ddc2
Disable dropdown filtering so all options always show
Browse filesThe config/cast dropdowns are short fixed lists, but Gradio's default
filterable mode put the current value into a text box and filtered the
list on open — collapsing it (e.g. SOUND BED showed only "No music").
Set filterable=False on FORMAT, LENGTH, SOUND BED and the Cast voice
pickers so a click shows the full list.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
app.py
CHANGED
|
@@ -837,17 +837,19 @@ def build_ui():
|
|
| 837 |
|
| 838 |
with gr.Row(elem_classes=["pf-config"], equal_height=True):
|
| 839 |
with gr.Column(elem_classes=["pf-config-card"]):
|
| 840 |
-
style = gr.Dropdown(STYLES, value="interview", label="FORMAT"
|
|
|
|
| 841 |
with gr.Column(elem_classes=["pf-config-card"]):
|
| 842 |
duration = gr.Dropdown(
|
| 843 |
[("1 min", 1), ("2 min", 2)],
|
| 844 |
-
value=2, label="LENGTH",
|
| 845 |
)
|
| 846 |
with gr.Column(elem_classes=["pf-config-card"]):
|
| 847 |
num_speakers = gr.Slider(1, MAX_SPEAKERS, value=2, step=1, label="VOICES")
|
| 848 |
with gr.Column(elem_classes=["pf-config-card"]):
|
| 849 |
bed_step1 = gr.Dropdown(
|
| 850 |
[b[0] for b in SOUND_BEDS], value="Ambient Drift", label="SOUND BED",
|
|
|
|
| 851 |
)
|
| 852 |
|
| 853 |
# ---- Cast: pick the voice used for each speaker ----
|
|
@@ -865,7 +867,7 @@ def build_ui():
|
|
| 865 |
vp = gr.Dropdown(
|
| 866 |
LIBRARY_VOICE_NAMES, value=default,
|
| 867 |
label=f"Speaker {i + 1}", visible=(i < 2),
|
| 868 |
-
elem_classes=["pf-config-card"],
|
| 869 |
)
|
| 870 |
voice_pickers.append(vp)
|
| 871 |
|
|
|
|
| 837 |
|
| 838 |
with gr.Row(elem_classes=["pf-config"], equal_height=True):
|
| 839 |
with gr.Column(elem_classes=["pf-config-card"]):
|
| 840 |
+
style = gr.Dropdown(STYLES, value="interview", label="FORMAT",
|
| 841 |
+
filterable=False)
|
| 842 |
with gr.Column(elem_classes=["pf-config-card"]):
|
| 843 |
duration = gr.Dropdown(
|
| 844 |
[("1 min", 1), ("2 min", 2)],
|
| 845 |
+
value=2, label="LENGTH", filterable=False,
|
| 846 |
)
|
| 847 |
with gr.Column(elem_classes=["pf-config-card"]):
|
| 848 |
num_speakers = gr.Slider(1, MAX_SPEAKERS, value=2, step=1, label="VOICES")
|
| 849 |
with gr.Column(elem_classes=["pf-config-card"]):
|
| 850 |
bed_step1 = gr.Dropdown(
|
| 851 |
[b[0] for b in SOUND_BEDS], value="Ambient Drift", label="SOUND BED",
|
| 852 |
+
filterable=False,
|
| 853 |
)
|
| 854 |
|
| 855 |
# ---- Cast: pick the voice used for each speaker ----
|
|
|
|
| 867 |
vp = gr.Dropdown(
|
| 868 |
LIBRARY_VOICE_NAMES, value=default,
|
| 869 |
label=f"Speaker {i + 1}", visible=(i < 2),
|
| 870 |
+
elem_classes=["pf-config-card"], filterable=False,
|
| 871 |
)
|
| 872 |
voice_pickers.append(vp)
|
| 873 |
|