Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -1723,6 +1723,7 @@ def create_demo():
|
|
| 1723 |
|
| 1724 |
/* ββ GLOBAL TEXT OVERRIDES (Dark Theme) ββ */
|
| 1725 |
/* Force ALL text to be light on dark background */
|
|
|
|
| 1726 |
.gradio-container label,
|
| 1727 |
.gradio-container .label-wrap,
|
| 1728 |
.gradio-container .label-wrap span,
|
|
@@ -1736,7 +1737,12 @@ def create_demo():
|
|
| 1736 |
.gradio-container .prose,
|
| 1737 |
.gradio-container .prose *,
|
| 1738 |
.gradio-container .block label span,
|
| 1739 |
-
.gradio-container .block .label-wrap span
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1740 |
color: #e2e8f0 !important;
|
| 1741 |
}
|
| 1742 |
|
|
@@ -1754,7 +1760,8 @@ def create_demo():
|
|
| 1754 |
}
|
| 1755 |
|
| 1756 |
/* ββ TAB LABELS (critical fix) ββ */
|
| 1757 |
-
.gradio-container .tabs .tab-nav button
|
|
|
|
| 1758 |
color: #94a3b8 !important;
|
| 1759 |
font-weight: 600 !important;
|
| 1760 |
font-size: 14px !important;
|
|
@@ -1765,12 +1772,15 @@ def create_demo():
|
|
| 1765 |
transition: all 0.25s ease !important;
|
| 1766 |
}
|
| 1767 |
.gradio-container .tabs .tab-nav button.selected,
|
| 1768 |
-
.gradio-container .tabs .tab-nav button
|
|
|
|
|
|
|
| 1769 |
color: #c084fc !important;
|
| 1770 |
border-bottom-color: #8b5cf6 !important;
|
| 1771 |
background: rgba(139, 92, 246, 0.1) !important;
|
| 1772 |
}
|
| 1773 |
-
.gradio-container .tabs .tab-nav button:hover
|
|
|
|
| 1774 |
color: #e2e8f0 !important;
|
| 1775 |
background: rgba(255, 255, 255, 0.05) !important;
|
| 1776 |
}
|
|
@@ -1778,7 +1788,8 @@ def create_demo():
|
|
| 1778 |
/* ββ SLIDER / RANGE LABELS ββ */
|
| 1779 |
.gradio-container input[type="range"] + .rangeSlider,
|
| 1780 |
.gradio-container .range-slider,
|
| 1781 |
-
.gradio-container input[type="number"]
|
|
|
|
| 1782 |
color: #e2e8f0 !important;
|
| 1783 |
}
|
| 1784 |
/* Slider min/max number labels */
|
|
@@ -2117,8 +2128,8 @@ if __name__ == "__main__":
|
|
| 2117 |
global model, processor, tts, voice_style, asr_model, asr_processor
|
| 2118 |
|
| 2119 |
|
| 2120 |
-
|
| 2121 |
-
model_id = "Qwen/Qwen3.5-2B"
|
| 2122 |
|
| 2123 |
print(f"Loading {model_id} model via Transformers...")
|
| 2124 |
|
|
|
|
| 1723 |
|
| 1724 |
/* ββ GLOBAL TEXT OVERRIDES (Dark Theme) ββ */
|
| 1725 |
/* Force ALL text to be light on dark background */
|
| 1726 |
+
.gradio-container,
|
| 1727 |
.gradio-container label,
|
| 1728 |
.gradio-container .label-wrap,
|
| 1729 |
.gradio-container .label-wrap span,
|
|
|
|
| 1737 |
.gradio-container .prose,
|
| 1738 |
.gradio-container .prose *,
|
| 1739 |
.gradio-container .block label span,
|
| 1740 |
+
.gradio-container .block .label-wrap span,
|
| 1741 |
+
.gradio-container button,
|
| 1742 |
+
.gradio-container button span,
|
| 1743 |
+
.gradio-container input,
|
| 1744 |
+
.gradio-container select,
|
| 1745 |
+
.gradio-container textarea {
|
| 1746 |
color: #e2e8f0 !important;
|
| 1747 |
}
|
| 1748 |
|
|
|
|
| 1760 |
}
|
| 1761 |
|
| 1762 |
/* ββ TAB LABELS (critical fix) ββ */
|
| 1763 |
+
.gradio-container .tabs .tab-nav button,
|
| 1764 |
+
.gradio-container .tabs .tab-nav button span {
|
| 1765 |
color: #94a3b8 !important;
|
| 1766 |
font-weight: 600 !important;
|
| 1767 |
font-size: 14px !important;
|
|
|
|
| 1772 |
transition: all 0.25s ease !important;
|
| 1773 |
}
|
| 1774 |
.gradio-container .tabs .tab-nav button.selected,
|
| 1775 |
+
.gradio-container .tabs .tab-nav button.selected span,
|
| 1776 |
+
.gradio-container .tabs .tab-nav button[aria-selected="true"],
|
| 1777 |
+
.gradio-container .tabs .tab-nav button[aria-selected="true"] span {
|
| 1778 |
color: #c084fc !important;
|
| 1779 |
border-bottom-color: #8b5cf6 !important;
|
| 1780 |
background: rgba(139, 92, 246, 0.1) !important;
|
| 1781 |
}
|
| 1782 |
+
.gradio-container .tabs .tab-nav button:hover,
|
| 1783 |
+
.gradio-container .tabs .tab-nav button:hover span {
|
| 1784 |
color: #e2e8f0 !important;
|
| 1785 |
background: rgba(255, 255, 255, 0.05) !important;
|
| 1786 |
}
|
|
|
|
| 1788 |
/* ββ SLIDER / RANGE LABELS ββ */
|
| 1789 |
.gradio-container input[type="range"] + .rangeSlider,
|
| 1790 |
.gradio-container .range-slider,
|
| 1791 |
+
.gradio-container input[type="number"],
|
| 1792 |
+
.gradio-container input[type="number"]::-moz-placeholder {
|
| 1793 |
color: #e2e8f0 !important;
|
| 1794 |
}
|
| 1795 |
/* Slider min/max number labels */
|
|
|
|
| 2128 |
global model, processor, tts, voice_style, asr_model, asr_processor
|
| 2129 |
|
| 2130 |
|
| 2131 |
+
model_id = "Qwen/Qwen3.5-9B"
|
| 2132 |
+
# model_id = "Qwen/Qwen3.5-2B"
|
| 2133 |
|
| 2134 |
print(f"Loading {model_id} model via Transformers...")
|
| 2135 |
|