Download app.py from alvin3y/try1: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/alvin3y/try1/resolve/main/app.py
- Command line
-
hf download hf://spaces/alvin3y/try1/app.py
-
curl -L -o app.py https://huggingface.co/spaces/alvin3y/try1/resolve/main/app.py
428 Bytes
| import gradio as gr | |
| import subprocess | |
| # Run startup script | |
| subprocess.run(["bash", "on_startup.sh"], check=True) | |
| def always_success(user_input): | |
| return "Success ✅" | |
| demo = gr.Interface( | |
| fn=always_success, | |
| inputs=gr.Textbox(label="Enter anything"), | |
| outputs=gr.Textbox(label="Result"), | |
| title="Always Success App", | |
| description="No matter what you type, the result is always 'Success'." | |
| ) | |
| demo.launch() | |