File size: 520 Bytes
835771a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr
import model


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

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

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