Spaces:
Runtime error
Runtime error
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() |