Spaces:
Running
Running
Update app.py
Browse filesCommenting out themes because WHY THEMES
app.py
CHANGED
|
@@ -100,22 +100,24 @@ def convert_model(model_to_load, save_precision_as, epoch, global_step, referenc
|
|
| 100 |
return f"❌ Error: {str(e)}"
|
| 101 |
|
| 102 |
# ---------------------- GRADIO INTERFACE ----------------------
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
|
|
|
|
|
|
| 112 |
|
| 113 |
with gr.Blocks(
|
| 114 |
css="""
|
| 115 |
.single-column {max-width: 800px; margin: 0 auto;}
|
| 116 |
.output-panel {background: rgba(0,0,0,0.05); padding: 20px; border-radius: 8px;}
|
| 117 |
""",
|
| 118 |
-
theme=build_theme("dark", "Arial")
|
| 119 |
) as demo:
|
| 120 |
|
| 121 |
# Accessibility Controls
|
|
|
|
| 100 |
return f"❌ Error: {str(e)}"
|
| 101 |
|
| 102 |
# ---------------------- GRADIO INTERFACE ----------------------
|
| 103 |
+
# ---------------------- GRADIO INTERFACE ----------------------
|
| 104 |
+
# Temporarily disabled theme configuration
|
| 105 |
+
# def build_theme(theme_name, font):
|
| 106 |
+
# """Create accessible theme with dynamic settings."""
|
| 107 |
+
# return gr.themes.Default().set(
|
| 108 |
+
# primary_hue="violet" if "dark" in theme_name else "indigo",
|
| 109 |
+
# font=[font, "ui-sans-serif", "sans-serif"],
|
| 110 |
+
# button_primary_background="*primary_300",
|
| 111 |
+
# button_primary_text_color="white",
|
| 112 |
+
# background_fill="*neutral_50" if "light" in theme_name else "*neutral_950"
|
| 113 |
+
# )
|
| 114 |
|
| 115 |
with gr.Blocks(
|
| 116 |
css="""
|
| 117 |
.single-column {max-width: 800px; margin: 0 auto;}
|
| 118 |
.output-panel {background: rgba(0,0,0,0.05); padding: 20px; border-radius: 8px;}
|
| 119 |
""",
|
| 120 |
+
# theme=build_theme("dark", "Arial") # Theme disabled temporarily
|
| 121 |
) as demo:
|
| 122 |
|
| 123 |
# Accessibility Controls
|