Update app.py
Browse files
app.py
CHANGED
@@ -208,13 +208,14 @@ with gr.Blocks() as iface:
|
|
208 |
with gr.Column(scale=2):
|
209 |
model_dropdown = gr.Dropdown(
|
210 |
choices=available_models,
|
211 |
-
label="Select Model"
|
212 |
value=first_model # Set initial selection to the first model
|
213 |
# visible=False # Initially hidden
|
214 |
)
|
215 |
# Create a Textbox to display the selected model
|
216 |
# Textbox to display the current selected model
|
217 |
selected_output = gr.Textbox(label="Current Selected Model", value=f"Selected Model: {first_model}")
|
|
|
218 |
|
219 |
# Update the global `first_model` when dropdown changes and display it
|
220 |
model_dropdown.change(
|
|
|
208 |
with gr.Column(scale=2):
|
209 |
model_dropdown = gr.Dropdown(
|
210 |
choices=available_models,
|
211 |
+
label=None, # "Select Model"
|
212 |
value=first_model # Set initial selection to the first model
|
213 |
# visible=False # Initially hidden
|
214 |
)
|
215 |
# Create a Textbox to display the selected model
|
216 |
# Textbox to display the current selected model
|
217 |
selected_output = gr.Textbox(label="Current Selected Model", value=f"Selected Model: {first_model}")
|
218 |
+
#selected_output = gr.Textbox(label="Current Selected Model", value=f"Selected Model: {first_model}")
|
219 |
|
220 |
# Update the global `first_model` when dropdown changes and display it
|
221 |
model_dropdown.change(
|