GhalaDev's picture
Update app.py
8b6d679 verified
Raw History Blame Contribute Delete
451 Bytes
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()