Spaces:
Sleeping
Sleeping
Download app.py from Isaras/session5app: direct link, hf CLI and curl.
- Browser
- Download file 587 Bytes
-
https://huggingface.co/spaces/Isaras/session5app/resolve/main/app.py
- Command line
-
hf download hf://spaces/Isaras/session5app/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Isaras/session5app/resolve/main/app.py
587 Bytes
| # AI-Assisted Code — Academic Integrity Notice | |
| # Generated with The App Builder. ESCP coursework. | |
| # Student must be able to explain all code when asked. | |
| import gradio as gr | |
| def greet(name): | |
| """Return a greeting message.""" | |
| if not name.strip(): | |
| return "Please enter your name." | |
| return f"Hello {name}, your HF app works!" | |
| demo = gr.Interface( | |
| fn=greet, | |
| inputs=gr.Textbox(label="Your name"), | |
| outputs=gr.Textbox(label="Output"), | |
| title="My First Hugging Face App", | |
| description="A basic Gradio app deployed on Hugging Face Spaces." | |
| ) | |
| demo.launch() |