Spaces:
Runtime error
Runtime error
VaAishvarR
commited on
Commit
·
1dd2457
1
Parent(s):
bec2b52
Update app.py
Browse files
app.py
CHANGED
@@ -100,10 +100,24 @@ def main(prob1):
|
|
100 |
obj = adr_predict(text)
|
101 |
return obj[0],obj[1],obj[2]
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
title = "Welcome to **ADR Detector** 🪐"
|
104 |
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 medicaitons. Please do NOT use for medical diagnosis."""
|
105 |
|
106 |
-
with gr.Blocks(title=title) as demo:
|
107 |
gr.Markdown(f"## {title}")
|
108 |
gr.Markdown(description1)
|
109 |
gr.Markdown("""---""")
|
|
|
100 |
obj = adr_predict(text)
|
101 |
return obj[0],obj[1],obj[2]
|
102 |
|
103 |
+
css = """
|
104 |
+
<style>
|
105 |
+
body {
|
106 |
+
background-color: #29382A;
|
107 |
+
}
|
108 |
+
h1, h2, h3, h4, h5, h6 {
|
109 |
+
color: #FFF;
|
110 |
+
}
|
111 |
+
mark {
|
112 |
+
color: #000;
|
113 |
+
}
|
114 |
+
</style>
|
115 |
+
"""
|
116 |
+
|
117 |
title = "Welcome to **ADR Detector** 🪐"
|
118 |
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 medicaitons. Please do NOT use for medical diagnosis."""
|
119 |
|
120 |
+
with gr.Blocks(title=title, css=css) as demo:
|
121 |
gr.Markdown(f"## {title}")
|
122 |
gr.Markdown(description1)
|
123 |
gr.Markdown("""---""")
|