File size: 584 Bytes
835771a
 
4d113cd
835771a
4a2afb3
 
835771a
f11d266
835771a
9ba4a41
835771a
 
 
2ef0a3b
835771a
c6cb13b
835771a
9ba4a41
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import gradio as gr
import model
from examples import example

input_1 = gr.inputs.Textbox(lines=1, placeholder='Feature Text', default="", label=None, optional=False)
input_2 = gr.inputs.Textbox(lines=5, placeholder='Patient History', default="", label=None, optional=False)

output_1 = gr.outputs.Textbox(type="auto", label=None)

iface = gr.Interface(
    model.get_predictions, 
    inputs=[input_1, input_2], 
    outputs=[output_1],
    examples=example,
    title='Identify Key Phrases in Patient Notes from Medical Licensing Exams',
    theme='dark', # 'dark'
)
iface.launch()