Spaces:
Runtime error
Runtime error
File size: 441 Bytes
61783d6 4395d1d 61783d6 4651297 61783d6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import gradio as gr
def predict(context, question):
raise Exception('Error')
title = "Gradio 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() |