ziem-io commited on
Commit
b0c4a5b
·
1 Parent(s): 44327f8

Fix: Light color for SVG text in dark mode

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -144,7 +144,15 @@ def get_device_info():
144
  return "◎ Runs on CPU (May be slower)"
145
 
146
  ### Create Form interface with Gradio Framework ##################################
147
- with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
148
  gr.HTML("<h2>Multi-Axis Regression of Whisky Tasting Notes</h2>")
149
  gr.HTML("""
150
  <h3>Automatically turn Whisky Tasting Notes into Flavour Wheels.</h3>
 
144
  return "◎ Runs on CPU (May be slower)"
145
 
146
  ### Create Form interface with Gradio Framework ##################################
147
+ custom_css = """
148
+ @media (prefers-color-scheme: dark) {
149
+ svg#wheel > text {
150
+ fill: rgb(200, 200, 200);
151
+ }
152
+ }
153
+ """
154
+
155
+ with gr.Blocks(css=custom_css) as demo:
156
  gr.HTML("<h2>Multi-Axis Regression of Whisky Tasting Notes</h2>")
157
  gr.HTML("""
158
  <h3>Automatically turn Whisky Tasting Notes into Flavour Wheels.</h3>