ChristopherMarais commited on
Commit
52ee15f
·
verified ·
1 Parent(s): dded882

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -217,7 +217,20 @@ def send_example(example_text, history, max_tokens, temperature, top_p, qa_chain
217
  # ---------------------------
218
  # Gradio Interface Layout
219
  # ---------------------------
220
- with gr.Blocks(theme=gr.themes.Monochrome(primary_hue="sky")) as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
221
  # Insert custom CSS for layout:
222
  gr.HTML("""
223
  <script>
 
217
  # ---------------------------
218
  # Gradio Interface Layout
219
  # ---------------------------
220
+ # Create a theme instance using one of Gradio's prebuilt themes
221
+ theme = gr.themes.Default(primary_hue="sky").set(
222
+ # Override the dark mode background to match the light mode background.
223
+ body_background_fill_dark="*body_background_fill",
224
+ # Override the primary button background for dark mode
225
+ button_primary_background_fill_dark="*button_primary_background_fill",
226
+ # Override text color so it stays the same in dark mode
227
+ text_color_dark="*text_color",
228
+ # Optionally, override other dark mode variables as needed
229
+ input_border_color_dark="*input_border_color",
230
+ slider_color_dark="*slider_color",
231
+ )
232
+
233
+ with gr.Blocks(theme=theme)) as demo:
234
  # Insert custom CSS for layout:
235
  gr.HTML("""
236
  <script>