Download app.py from OpenPM/TEST-DEMO: direct link, hf CLI and curl.
- Browser
- Download file 171 Bytes
-
https://huggingface.co/spaces/OpenPM/TEST-DEMO/resolve/main/app.py
- Command line
-
hf download hf://spaces/OpenPM/TEST-DEMO/app.py
-
curl -L -o app.py https://huggingface.co/spaces/OpenPM/TEST-DEMO/resolve/main/app.py
171 Bytes
| import spaces | |
| import torch | |
| def check(): | |
| return torch.cuda.is_available() | |
| import gradio as gr | |
| gr.Interface(fn=check, inputs=None, outputs="text").launch() |