Duskfallcrew commited on
Commit
ea14a31
·
verified ·
1 Parent(s): cef8e20

Update app.py

Browse files

Commenting out themes because WHY THEMES

Files changed (1) hide show
  1. app.py +12 -10
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
- def build_theme(theme_name, font):
104
- """Create accessible theme with dynamic settings."""
105
- return gr.themes.Default().set(
106
- primary_hue="violet" if "dark" in theme_name else "indigo",
107
- font=[font, "ui-sans-serif", "sans-serif"],
108
- button_primary_background="*primary_300",
109
- button_primary_text_color="white",
110
- background_fill="*neutral_50" if "light" in theme_name else "*neutral_950"
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