Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ FHx: mom with "thyroid disease," dad with recent heart attcak
|
|
9 |
All: none
|
10 |
Immunizations: up to date
|
11 |
SHx: Freshmen in college. Endorses 3-4 drinks 3 nights / week (on weekends), denies tabacco, endorses trying marijuana. Sexually active with girlfriend x 1 year, uses condoms"""
|
12 |
-
example = [example_input_1, example_input_2]
|
13 |
|
14 |
input_1 = gr.inputs.Textbox(lines=1, placeholder='Feature Text', default="", label=None, optional=False)
|
15 |
input_2 = gr.inputs.Textbox(lines=5, placeholder='Patient History', default="", label=None, optional=False)
|
@@ -20,7 +20,7 @@ iface = gr.Interface(
|
|
20 |
model.get_predictions,
|
21 |
inputs=[input_1, input_2],
|
22 |
outputs=[output_1],
|
23 |
-
|
24 |
title='Identify Key Phrases in Patient Notes from Medical Licensing Exams',
|
25 |
theme='dark', # 'dark'
|
26 |
)
|
|
|
9 |
All: none
|
10 |
Immunizations: up to date
|
11 |
SHx: Freshmen in college. Endorses 3-4 drinks 3 nights / week (on weekends), denies tabacco, endorses trying marijuana. Sexually active with girlfriend x 1 year, uses condoms"""
|
12 |
+
example = [[example_input_1, example_input_2]]
|
13 |
|
14 |
input_1 = gr.inputs.Textbox(lines=1, placeholder='Feature Text', default="", label=None, optional=False)
|
15 |
input_2 = gr.inputs.Textbox(lines=5, placeholder='Patient History', default="", label=None, optional=False)
|
|
|
20 |
model.get_predictions,
|
21 |
inputs=[input_1, input_2],
|
22 |
outputs=[output_1],
|
23 |
+
examples=example,
|
24 |
title='Identify Key Phrases in Patient Notes from Medical Licensing Exams',
|
25 |
theme='dark', # 'dark'
|
26 |
)
|