Commit
·
c8da896
1
Parent(s):
e047cd7
Update app.py
Browse files
app.py
CHANGED
|
@@ -237,10 +237,10 @@ def deid(text, model, threshold):
|
|
| 237 |
return [highlight_text for highlight_text in App._get_highlights(deid_text)], deid_text_remove
|
| 238 |
|
| 239 |
recall_choices = ["No threshold", "99.5", "99.7"]
|
| 240 |
-
recall_radio_input = gr.inputs.Radio(recall_choices, type="value", default=
|
| 241 |
|
| 242 |
model_choices = list(App._get_model_map().keys())
|
| 243 |
-
model_radio_input = gr.inputs.Radio(model_choices, type="value", default=
|
| 244 |
|
| 245 |
title = 'DE-IDENTIFICATION OF ELECTRONIC HEALTH RECORDS'
|
| 246 |
description = 'Models to remove private information (PHI/PII) from raw medical notes. The recall threshold (bias) can be used to remove PHI more aggressively.'
|
|
|
|
| 237 |
return [highlight_text for highlight_text in App._get_highlights(deid_text)], deid_text_remove
|
| 238 |
|
| 239 |
recall_choices = ["No threshold", "99.5", "99.7"]
|
| 240 |
+
recall_radio_input = gr.inputs.Radio(recall_choices, type="value", default='No threshold', label='RECALL THRESHOLD')
|
| 241 |
|
| 242 |
model_choices = list(App._get_model_map().keys())
|
| 243 |
+
model_radio_input = gr.inputs.Radio(model_choices, type="value", default='OBI-RoBERTa De-ID', label='DE-ID MODEL')
|
| 244 |
|
| 245 |
title = 'DE-IDENTIFICATION OF ELECTRONIC HEALTH RECORDS'
|
| 246 |
description = 'Models to remove private information (PHI/PII) from raw medical notes. The recall threshold (bias) can be used to remove PHI more aggressively.'
|