File size: 228 Bytes
1f507df
 
00a862e
1f507df
4635dd8
 
00a862e
1f507df
 
00a862e
1f507df
00a862e
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr


def greet(name):
    result = 1 / 0
    return "Hello, welcome to  " + name + "!" + result


demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")

if __name__ == "__main__":
    demo.launch()