Christopher McMaster commited on
Commit
079a915
1 Parent(s): cd56bc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -52,8 +52,7 @@ default_text = """# Pancreatitis
52
  - Likely secondary to Azathioprine - ceased, never to be used again.
53
  - Resolved with conservative measures
54
  """
55
- title = "Adverse Drug Reaction Highlighting"
56
- 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."
57
  ner_model = pipeline(task = 'token-classification', model = "austin/adr-ner")
58
  iface = gr.Interface(_gradio_highlighting,
59
  [
@@ -63,7 +62,5 @@ iface = gr.Interface(_gradio_highlighting,
63
  default=default_text),
64
  ],
65
  gr.outputs.HTML(label="ADR Prediction"),
66
- title = title,
67
- description = description,
68
- theme = "darkdefault")
69
  iface.launch()
 
52
  - Likely secondary to Azathioprine - ceased, never to be used again.
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
  default=default_text),
63
  ],
64
  gr.outputs.HTML(label="ADR Prediction"),
65
+ )
 
 
66
  iface.launch()