test_error / app.py
Omar Sanseviero
Update app.py
b58ff2d
raw
history blame
454 Bytes
import gradio as gr
def predict(context, question):
print("Not returning anything, error")
title = "Gadio with error"
description = "Gradio with error."
iface = gr.Interface(fn=predict,
inputs=[gr.inputs.Textbox(label="context"), gr.inputs.Textbox(label="question")],
outputs='text',
title=title,
description=description,
examples=[["My name is Omar and I live in Mexico", "Where does Omar live?"]],
enable_queue=True)
iface.launch()