Spaces:
Runtime error
Runtime error
import gradio as gr | |
def my_function(input1, input2): | |
print(input1) | |
print(input2) | |
return input1 + input2 | |
title = 'My gradio app' | |
description = "My simple description for my first gradio app" | |
input1_textbox = gr.Textbox(label="Context Box") | |
input2_textbox = gr.Textbox(label="Question Box") | |
output1_textbox = gr.Textbox() | |
iface = gr.Interface(fn=my_function, | |
inputs=[input1_textbox, input2_textbox], | |
outputs=[output1_textbox], | |
title=title, | |
description=description) | |
iface.launch() |