Spaces:
Runtime error
Runtime error
rishabh5752
commited on
Commit
•
9ada163
1
Parent(s):
7ce14de
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import re
|
|
3 |
import sys
|
4 |
import json
|
5 |
import tempfile
|
6 |
-
|
7 |
|
8 |
from transformers import (
|
9 |
TrainingArguments,
|
@@ -245,7 +245,7 @@ model_radio_input = gr.inputs.Radio(model_choices, type="value", default='OBI-Ro
|
|
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.'
|
247 |
|
248 |
-
gradio_input = Textbox(
|
249 |
lines=10,
|
250 |
placeholder='Enter text with PHI',
|
251 |
label='RAW MEDICAL NOTE'
|
@@ -273,4 +273,4 @@ iface = gr.Interface(
|
|
273 |
inputs=[gradio_input, model_radio_input, recall_radio_input],
|
274 |
outputs=[gradio_highlight_output, gradio_text_output],
|
275 |
)
|
276 |
-
iface.launch()
|
|
|
3 |
import sys
|
4 |
import json
|
5 |
import tempfile
|
6 |
+
import gradio as gr
|
7 |
|
8 |
from transformers import (
|
9 |
TrainingArguments,
|
|
|
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.'
|
247 |
|
248 |
+
gradio_input = gr.inputs.Textbox(
|
249 |
lines=10,
|
250 |
placeholder='Enter text with PHI',
|
251 |
label='RAW MEDICAL NOTE'
|
|
|
273 |
inputs=[gradio_input, model_radio_input, recall_radio_input],
|
274 |
outputs=[gradio_highlight_output, gradio_text_output],
|
275 |
)
|
276 |
+
iface.launch()
|