serpxe commited on
Commit
d12696e
·
1 Parent(s): 079a915

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -53,6 +53,9 @@ default_text = """# Pancreatitis
53
  - Resolved with conservative measures
54
  """
55
 
 
 
 
56
  ner_model = pipeline(task = 'token-classification', model = "austin/adr-ner")
57
  iface = gr.Interface(_gradio_highlighting,
58
  [
@@ -62,5 +65,8 @@ iface = gr.Interface(_gradio_highlighting,
62
  default=default_text),
63
  ],
64
  gr.outputs.HTML(label="ADR Prediction"),
 
 
 
65
  )
66
  iface.launch()
 
53
  - Resolved with conservative measures
54
  """
55
 
56
+ title = "Adverse Drug Reaction Highlighting"
57
+ description = "This app was made to accompany our recent paper. ADRs will be highlighted in purple, offending medications in green. Hover over a word to see the strength of each prediction on a 0-1 scale."
58
+
59
  ner_model = pipeline(task = 'token-classification', model = "austin/adr-ner")
60
  iface = gr.Interface(_gradio_highlighting,
61
  [
 
65
  default=default_text),
66
  ],
67
  gr.outputs.HTML(label="ADR Prediction"),
68
+ title = title,
69
+ description = description,
70
+ theme = "darkdefault"
71
  )
72
  iface.launch()