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() | |
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() | |