ChristopherMarais commited on
Commit
32c88f1
·
verified ·
1 Parent(s): ceaf7ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -218,14 +218,16 @@ def send_example(example_text, history, max_tokens, temperature, top_p, qa_chain
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
- # For identical styling in dark mode, set these variables to None.
223
- body_background_fill_dark=None,
224
- input_border_color_dark=None,
225
- slider_color_dark=None,
226
- )
 
 
227
 
228
- with gr.Blocks(theme=theme) as demo:
229
  # Insert custom CSS for layout:
230
  gr.HTML("""
231
  <script>
 
218
  # Gradio Interface Layout
219
  # ---------------------------
220
  # Create a theme instance using one of Gradio's prebuilt themes
221
+ # Custom CSS that forces light mode regardless of browser settings.
222
+ custom_css = """
223
+ :root {
224
+ color-scheme: light !important;
225
+ background-color: #fff !important;
226
+ color: #333 !important;
227
+ }
228
+ """
229
 
230
+ with gr.Blocks(css=custom_css) as demo:
231
  # Insert custom CSS for layout:
232
  gr.HTML("""
233
  <script>