Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| def greet(name: str) -> str: | |
| return "Hello " + name + "!!" | |
| demo = gr.Interface( | |
| fn=greet, | |
| inputs=gr.Textbox(label="Enter your name"), | |
| outputs=gr.Textbox(label="Greeting"), | |
| title="Greeting App", | |
| description="Enter your name and get a greeting!", | |
| examples=[["Divyansh"], ["Alice"]] | |
| ) | |
| demo.launch() | |