Download app.py from caddrlhst/grtest: direct link, hf CLI and curl.
- Browser
- Download file 252 Bytes
-
https://huggingface.co/spaces/caddrlhst/grtest/resolve/main/app.py
- Command line
-
hf download hf://spaces/caddrlhst/grtest/app.py
-
curl -L -o app.py https://huggingface.co/spaces/caddrlhst/grtest/resolve/main/app.py
252 Bytes
| import time | |
| import gradio as gr | |
| def greet(name): | |
| r = '' | |
| for c in "Hello " + name: | |
| r += c | |
| yield r | |
| time.sleep(0.1) | |
| demo = gr.Interface( | |
| fn=greet, | |
| inputs=['text'], | |
| outputs=['text'], | |
| ) | |
| demo.launch(share=True) |