try-phi-2 / app.py
paiguxia's picture
panic
4635dd8
raw
history blame
228 Bytes
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()