| import gradio as gr | |
| def greet(name): | |
| return "h2 " + name + "!" | |
| demo = gr.Interface( | |
| fn=greet, | |
| inputs="text", | |
| outputs="text", | |
| title="Greeting Interface", | |
| description="This interface greets the user with the provided name." | |
| ) | |
| demo.launch(share=True) |
| import gradio as gr | |
| def greet(name): | |
| return "h2 " + name + "!" | |
| demo = gr.Interface( | |
| fn=greet, | |
| inputs="text", | |
| outputs="text", | |
| title="Greeting Interface", | |
| description="This interface greets the user with the provided name." | |
| ) | |
| demo.launch(share=True) |