Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
|
|
|
|
|
|
| 227 |
|
| 228 |
-
with gr.Blocks(
|
| 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>
|