elliealbertson commited on
Commit
52d9e03
1 Parent(s): 33a7aea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -38,6 +38,7 @@ def predict(text):
38
  with gr.Blocks() as interface:
39
  gr.HTML("<div style='text-align:center;'><div><h1>Identifying Pregnancy in Clinical Notes</h1></div>")
40
  gr.HTML("<p align='center'>Use this app to classify a clinical note as discussing or not discussing the patient's pregnancy.</p>")
 
41
  with gr.Row():
42
  with gr.Column():
43
  inputs = gr.Textbox(label='Input a clinical note here:', lines=4)
@@ -47,5 +48,6 @@ with gr.Blocks() as interface:
47
  outputs=gr.Textbox(label="Does the note discuss the patient's pregnancy?", lines=4)
48
  button.click(fn=predict, inputs=inputs, outputs=outputs, queue=False)
49
  gr.HTML("<p align='center'>Model fine-tuned from <a href='https://huggingface.co/emilyalsentzer/Bio_ClinicalBERT' target='_blank'> Bio+ClinicalBERT </a>.</p>")
 
50
 
51
- interface.launch()
 
38
  with gr.Blocks() as interface:
39
  gr.HTML("<div style='text-align:center;'><div><h1>Identifying Pregnancy in Clinical Notes</h1></div>")
40
  gr.HTML("<p align='center'>Use this app to classify a clinical note as discussing or not discussing the patient's pregnancy.</p>")
41
+ gr.HTML("<p align='center'>The model was fine-tuned on a small number of clinical notes agumented by limited synthetic data. As a result, it may give inaccurate results at times.</p>")
42
  with gr.Row():
43
  with gr.Column():
44
  inputs = gr.Textbox(label='Input a clinical note here:', lines=4)
 
48
  outputs=gr.Textbox(label="Does the note discuss the patient's pregnancy?", lines=4)
49
  button.click(fn=predict, inputs=inputs, outputs=outputs, queue=False)
50
  gr.HTML("<p align='center'>Model fine-tuned from <a href='https://huggingface.co/emilyalsentzer/Bio_ClinicalBERT' target='_blank'> Bio+ClinicalBERT </a>.</p>")
51
+ gr.HTML("<p align='center'>Repository available on <a href='https://github.com/elliealbertson/identifying_pregnancy_clinical_notes' target='_blank'> GitHub </a>.</p>")
52
 
53
+ interface.launch()