paragon-analytics commited on
Commit
cde5ee9
1 Parent(s): c35e70a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -54,8 +54,7 @@ def main(prob1):
54
  return obj[0],obj[1],obj[2]
55
 
56
  title = "Welcome to **ADR Detector** 🪐"
57
- description1 = """This app takes text (up to a few sentences) and predicts to what extent the text describes severe (or non-severe)
58
- adverse reaction to medicaitons. Please do NOT use for medical diagnosis."""
59
 
60
  with gr.Blocks(title=title) as demo:
61
  gr.Markdown(f"## {title}")
@@ -64,13 +63,13 @@ with gr.Blocks(title=title) as demo:
64
  prob1 = gr.Textbox(label="Enter Your Text Here:",lines=2, placeholder="Type it here ...")
65
  submit_btn = gr.Button("Analyze")
66
 
67
-
68
- with gr.Column(visible=True) as output_col:
69
- label = gr.Label(label = "Predicted Label")
70
  local_plot = gr.HTML(label = 'Shap:')
71
- med = gr.Label(label = "Contains Medication")
72
-
73
 
 
 
 
 
74
  submit_btn.click(
75
  main,
76
  [prob1],
 
54
  return obj[0],obj[1],obj[2]
55
 
56
  title = "Welcome to **ADR Detector** 🪐"
57
+ 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."""
 
58
 
59
  with gr.Blocks(title=title) as demo:
60
  gr.Markdown(f"## {title}")
 
63
  prob1 = gr.Textbox(label="Enter Your Text Here:",lines=2, placeholder="Type it here ...")
64
  submit_btn = gr.Button("Analyze")
65
 
66
+ with gr.Row():
 
 
67
  local_plot = gr.HTML(label = 'Shap:')
 
 
68
 
69
+ with gr.Column(visible=True) as output_col:
70
+ label = gr.Label(label = "Predicted Label")
71
+ med = gr.Label(label = "Contains Medication")
72
+
73
  submit_btn.click(
74
  main,
75
  [prob1],