Spaces:
Running
on
Zero
Running
on
Zero
Update ui_manager.py
Browse files- ui_manager.py +8 -9
ui_manager.py
CHANGED
|
@@ -294,15 +294,14 @@ class UIManager:
|
|
| 294 |
elem_classes=["input-field"]
|
| 295 |
)
|
| 296 |
|
| 297 |
-
# Scene Template Selector
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
)
|
| 306 |
|
| 307 |
prompt_input = gr.Textbox(
|
| 308 |
label="Background Scene Description",
|
|
|
|
| 294 |
elem_classes=["input-field"]
|
| 295 |
)
|
| 296 |
|
| 297 |
+
# Scene Template Selector (without Accordion to fix dropdown positioning in Gradio 5.x)
|
| 298 |
+
template_dropdown = gr.Dropdown(
|
| 299 |
+
label="Scene Templates",
|
| 300 |
+
choices=[""] + self.template_manager.get_template_choices_sorted(),
|
| 301 |
+
value="",
|
| 302 |
+
info="24 curated scenes sorted A-Z (optional)",
|
| 303 |
+
elem_classes=["template-dropdown"]
|
| 304 |
+
)
|
|
|
|
| 305 |
|
| 306 |
prompt_input = gr.Textbox(
|
| 307 |
label="Background Scene Description",
|