Spaces:
Sleeping
Sleeping
fix: install graphviz in Makefile, add light theme CSS override
Browse files
Makefile
CHANGED
|
@@ -16,6 +16,16 @@ help: ## Show this help message
|
|
| 16 |
@echo ""
|
| 17 |
|
| 18 |
install: ## Create venv and install dependencies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
@echo "📦 Creating virtual environment..."
|
| 20 |
@$(PYTHON) -m venv $(VENV)
|
| 21 |
@$(VENV_PIP) install --upgrade pip
|
|
|
|
| 16 |
@echo ""
|
| 17 |
|
| 18 |
install: ## Create venv and install dependencies
|
| 19 |
+
@echo "📦 Installing system dependencies (graphviz)..."
|
| 20 |
+
@if command -v apt-get >/dev/null 2>&1; then \
|
| 21 |
+
sudo apt-get update -qq && sudo apt-get install -y -qq graphviz; \
|
| 22 |
+
elif command -v brew >/dev/null 2>&1; then \
|
| 23 |
+
brew install graphviz; \
|
| 24 |
+
elif command -v yum >/dev/null 2>&1; then \
|
| 25 |
+
sudo yum install -y graphviz; \
|
| 26 |
+
else \
|
| 27 |
+
echo "⚠️ Please install graphviz manually"; \
|
| 28 |
+
fi
|
| 29 |
@echo "📦 Creating virtual environment..."
|
| 30 |
@$(PYTHON) -m venv $(VENV)
|
| 31 |
@$(VENV_PIP) install --upgrade pip
|
app.py
CHANGED
|
@@ -16,13 +16,34 @@ def main():
|
|
| 16 |
neutral_hue=gr.themes.colors.gray,
|
| 17 |
)
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
app.launch(
|
| 20 |
share=False,
|
| 21 |
server_name="0.0.0.0",
|
| 22 |
server_port=7860,
|
| 23 |
mcp_server=True,
|
| 24 |
theme=theme,
|
| 25 |
-
css=
|
| 26 |
allowed_paths=[str(AUDIOS_DIR)],
|
| 27 |
)
|
| 28 |
|
|
|
|
| 16 |
neutral_hue=gr.themes.colors.gray,
|
| 17 |
)
|
| 18 |
|
| 19 |
+
# Force light theme CSS
|
| 20 |
+
light_theme_css = """
|
| 21 |
+
.dark {
|
| 22 |
+
--body-background-fill: white !important;
|
| 23 |
+
--background-fill-primary: white !important;
|
| 24 |
+
--background-fill-secondary: #f7f7f7 !important;
|
| 25 |
+
--block-background-fill: white !important;
|
| 26 |
+
--body-text-color: #374151 !important;
|
| 27 |
+
--block-label-text-color: #374151 !important;
|
| 28 |
+
--block-title-text-color: #374151 !important;
|
| 29 |
+
--input-background-fill: white !important;
|
| 30 |
+
--input-background-fill-focus: white !important;
|
| 31 |
+
--border-color-primary: #e5e7eb !important;
|
| 32 |
+
--link-text-color: #ea580c !important;
|
| 33 |
+
--link-text-color-hover: #c2410c !important;
|
| 34 |
+
--button-primary-background-fill: #ea580c !important;
|
| 35 |
+
--button-primary-text-color: white !important;
|
| 36 |
+
}
|
| 37 |
+
"""
|
| 38 |
+
combined_css = light_theme_css + (custom_css or "")
|
| 39 |
+
|
| 40 |
app.launch(
|
| 41 |
share=False,
|
| 42 |
server_name="0.0.0.0",
|
| 43 |
server_port=7860,
|
| 44 |
mcp_server=True,
|
| 45 |
theme=theme,
|
| 46 |
+
css=combined_css,
|
| 47 |
allowed_paths=[str(AUDIOS_DIR)],
|
| 48 |
)
|
| 49 |
|