paragon-analytics commited on
Commit
08184e4
1 Parent(s): 7f48a24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -49,7 +49,8 @@ def main(prob1):
49
  return obj[0],obj[1],obj[2]
50
 
51
  title = "Welcome to **ADR Detector** 🪐"
52
- 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."""
 
53
 
54
  with gr.Blocks(title=title) as demo:
55
  gr.Markdown(f"## {title}")
@@ -62,6 +63,7 @@ with gr.Blocks(title=title) as demo:
62
  with gr.Column(visible=True) as output_col:
63
  label = gr.Label(label = "Predicted Label")
64
  local_plot = gr.HTML(label = 'Shap:')
 
65
 
66
  submit_btn.click(
67
  main,
 
49
  return obj[0],obj[1],obj[2]
50
 
51
  title = "Welcome to **ADR Detector** 🪐"
52
+ description1 = """This app takes text (up to a few sentences) and predicts to what extent the text describes severe (or non-severe)
53
+ adverse reaction to medicaitons. Please do NOT use for medical diagnosis."""
54
 
55
  with gr.Blocks(title=title) as demo:
56
  gr.Markdown(f"## {title}")
 
63
  with gr.Column(visible=True) as output_col:
64
  label = gr.Label(label = "Predicted Label")
65
  local_plot = gr.HTML(label = 'Shap:')
66
+ med = gr.Label(label = "Contains Medication")
67
 
68
  submit_btn.click(
69
  main,