File size: 451 Bytes
5952314
8b6d679
5952314
8b6d679
 
 
 
5952314
8b6d679
 
 
 
 
5952314
8b6d679
5952314
8b6d679
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr

def welcome(name):
    if not name.strip():
        name = "student"
    return f"Hello {name}! Welcome to my first Hugging Face Space."

demo = gr.Interface(
    fn=welcome,
    inputs=gr.Textbox(label="Enter your name"),
    outputs=gr.Textbox(label="Message"),
    title="My First Generative AI Bootcamp Demo",
    description="A simple Space created for the bootcamp setup lab."
)

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