Spaces:
Sleeping
Sleeping
Download app.py from GhalaDev/GenAI-bootcamp-demo: direct link, hf CLI and curl.
- Browser
- Download file 451 Bytes
-
https://huggingface.co/spaces/GhalaDev/GenAI-bootcamp-demo/resolve/main/app.py
- Command line
-
hf download hf://spaces/GhalaDev/GenAI-bootcamp-demo/app.py
-
curl -L -o app.py https://huggingface.co/spaces/GhalaDev/GenAI-bootcamp-demo/resolve/main/app.py
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() |