Download app.py from HKDI-project/contents: direct link, hf CLI and curl.
- Browser
- Download file 163 Bytes
-
https://huggingface.co/HKDI-project/contents/resolve/main/app.py
- Command line
-
hf download hf://HKDI-project/contents/app.py
-
curl -L -o app.py https://huggingface.co/HKDI-project/contents/resolve/main/app.py
163 Bytes
| import gradio as gr | |
| def greet(name): | |
| return "Hello " + name + "!!" | |
| demo = gr.Interface( | |
| fn=greet, | |
| inputs="text", | |
| outputs="text" | |
| ) | |
| demo.launch() | |