Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def update_direct_steering_options(prompt_type):
|
|
42 |
}
|
43 |
|
44 |
# Set the first option as default, or an empty list if no options are available
|
45 |
-
default_value =
|
46 |
|
47 |
return gr.Dropdown(choices=choices, value=default_value, interactive=True)
|
48 |
|
|
|
42 |
}
|
43 |
|
44 |
# Set the first option as default, or an empty list if no options are available
|
45 |
+
default_value = options[0] if options else []
|
46 |
|
47 |
return gr.Dropdown(choices=choices, value=default_value, interactive=True)
|
48 |
|