File size: 396 Bytes
af9e481
 
 
f39b405
af9e481
 
 
2cb4899
af9e481
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr

def greet (name):
    return f"Hello {name}! Welcome to my first Hugging Face Space."

demo = gr.Interface(
    fn=greet,
    inputs=gr.Textbox(label="Enter your name"),
    outputs=gr.Textbox(label="Output"),
    title="My First Hugging Face Space",
    description="This is a simple Gradio app running on Hugging Face Spaces."
)

if __name__=="__main__":
    demo.launch()