Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -594,7 +594,21 @@ def create_ui():
|
|
594 |
opacity: 1;
|
595 |
}
|
596 |
|
597 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
598 |
@media (max-width: 768px) {
|
599 |
.header-title {
|
600 |
font-size: 2rem;
|
@@ -624,12 +638,21 @@ def create_ui():
|
|
624 |
# Template selection with visual cards
|
625 |
gr.Markdown("### 🎯 Choose Your Template")
|
626 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
627 |
template_dropdown = gr.Dropdown(
|
628 |
label="TTS Template",
|
629 |
-
choices=
|
630 |
value=default_template,
|
631 |
info="Select a predefined template to get started quickly",
|
632 |
-
elem_classes=["template-selector"]
|
|
|
|
|
633 |
)
|
634 |
|
635 |
# Template description with enhanced styling
|
|
|
594 |
opacity: 1;
|
595 |
}
|
596 |
|
597 |
+
/* Dropdown specific styling to ensure visibility */
|
598 |
+
.template-selector {
|
599 |
+
min-width: 300px;
|
600 |
+
z-index: 1000;
|
601 |
+
}
|
602 |
+
|
603 |
+
.gr-dropdown {
|
604 |
+
position: relative;
|
605 |
+
}
|
606 |
+
|
607 |
+
.gr-dropdown .gr-dropdown-list {
|
608 |
+
max-height: 300px;
|
609 |
+
overflow-y: auto;
|
610 |
+
z-index: 1001;
|
611 |
+
}
|
612 |
@media (max-width: 768px) {
|
613 |
.header-title {
|
614 |
font-size: 2rem;
|
|
|
638 |
# Template selection with visual cards
|
639 |
gr.Markdown("### 🎯 Choose Your Template")
|
640 |
|
641 |
+
# Show available templates for debugging
|
642 |
+
gr.Markdown(f"Available templates: {', '.join(PREDEFINED_EXAMPLES.keys())}")
|
643 |
+
|
644 |
+
# Debug: Print available templates
|
645 |
+
available_templates = list(PREDEFINED_EXAMPLES.keys())
|
646 |
+
logger.info(f"Available templates: {available_templates}")
|
647 |
+
|
648 |
template_dropdown = gr.Dropdown(
|
649 |
label="TTS Template",
|
650 |
+
choices=available_templates,
|
651 |
value=default_template,
|
652 |
info="Select a predefined template to get started quickly",
|
653 |
+
elem_classes=["template-selector"],
|
654 |
+
interactive=True,
|
655 |
+
visible=True
|
656 |
)
|
657 |
|
658 |
# Template description with enhanced styling
|