File size: 609 Bytes
835771a
 
 
 
 
 
 
f11d266
835771a
9ba4a41
 
 
 
835771a
 
 
 
 
 
9ba4a41
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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(type="auto", label=None)

# iface = gr.Interface(fn= ... jo bhi code hai)
# iface.launch( enable_queue=True)

iface = 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',
)
iface.launch()