File size: 382 Bytes
554b052
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()