Spaces:
Runtime error
Runtime error
import gradio as gr | |
import run_inference | |
def prediction(patient_record): | |
patient_record = str(patient_record) | |
run_inference.main() | |
demo = gr.Interface( | |
fn=prediction, | |
inputs=gr.Textbox(lines=2, placeholder="Enter the patient record here "), | |
outputs="text", | |
) | |
demo.launch() |