Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def save_audio(audio, dropdown_label, custom_label, speaker_name):
|
|
| 75 |
def create_interface():
|
| 76 |
with gr.Blocks() as demo:
|
| 77 |
labels = LABELS # Add a "Custom" option for custom label
|
| 78 |
-
label_dropdown = gr.Dropdown(choices=
|
| 79 |
custom_label = gr.Textbox(label="Enter Custom Label", visible=False) # Initially hidden
|
| 80 |
|
| 81 |
# Function to show/hide custom label textbox based on dropdown selection
|
|
|
|
| 75 |
def create_interface():
|
| 76 |
with gr.Blocks() as demo:
|
| 77 |
labels = LABELS # Add a "Custom" option for custom label
|
| 78 |
+
label_dropdown = gr.Dropdown(choices=LABLES, label="Select Label")
|
| 79 |
custom_label = gr.Textbox(label="Enter Custom Label", visible=False) # Initially hidden
|
| 80 |
|
| 81 |
# Function to show/hide custom label textbox based on dropdown selection
|