jschwaller commited on
Commit
347dde4
·
verified ·
1 Parent(s): b6c1514

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -68,15 +68,14 @@ def main(prob1):
68
  obj = adr_predict(text)
69
  return obj[0], obj[1], obj[2]
70
 
71
- title = "Welcome to **ADR Tracker** "
72
  description1 = "This app takes text (up to a few sentences) and predicts to what extent the text describes severe (or non-severe) adverse reaction to medications. Please do NOT use for medical diagnosis."
73
 
74
  css = """
75
  body { font-family: 'Roboto', sans-serif; background-color: #333; color: #87CEEB; }
76
- h1, h2, h3, h4, h5, h6 { color: #FF6347; }
77
  .textbox { width: 100%; border-radius: 10px; border: 1px solid #ccc; background-color: white; color: black; }
78
  .button { background-color: #FF6347; color: white; border: none; border-radius: 10px; padding: 10px 20px; cursor: pointer; }
79
- .markdown { color: #87CEEB; } /* Light blue text for all markdown elements */
80
  """
81
 
82
  with gr.Blocks(css=css) as demo:
 
68
  obj = adr_predict(text)
69
  return obj[0], obj[1], obj[2]
70
 
71
+ title = "Welcome to **ADR Detector** 🪐"
72
  description1 = "This app takes text (up to a few sentences) and predicts to what extent the text describes severe (or non-severe) adverse reaction to medications. Please do NOT use for medical diagnosis."
73
 
74
  css = """
75
  body { font-family: 'Roboto', sans-serif; background-color: #333; color: #87CEEB; }
76
+ h1, h2, h3, h4, h5, h6, p, label, .markdown { color: #87CEEB; } /* Ensuring that all text elements are consistently light blue */
77
  .textbox { width: 100%; border-radius: 10px; border: 1px solid #ccc; background-color: white; color: black; }
78
  .button { background-color: #FF6347; color: white; border: none; border-radius: 10px; padding: 10px 20px; cursor: pointer; }
 
79
  """
80
 
81
  with gr.Blocks(css=css) as demo: