import gradio as gr def hello(name: str) -> str: return f"Hello, {name or 'world'}!" demo = gr.Interface( fn=hello, inputs=gr.Textbox(label="Your name", placeholder="world"), outputs=gr.Textbox(label="Greeting"), title="Hello World", description="A tiny Space created through the Hugging Face connector.", ) if __name__ == "__main__": demo.launch()