Spaces:
Sleeping
Sleeping
Download modal_intro.py from ServandoTorres/Relu: direct link, hf CLI and curl.
- Browser
- Download file 242 Bytes
-
https://huggingface.co/spaces/ServandoTorres/Relu/resolve/main/modal_intro.py
- Command line
-
hf download hf://spaces/ServandoTorres/Relu/modal_intro.py
-
curl -L -o modal_intro.py https://huggingface.co/spaces/ServandoTorres/Relu/resolve/main/modal_intro.py
242 Bytes
| import modal | |
| stub = modal.Stub("example-get-started") | |
| def square(x): | |
| print("This code is running on a remote worker!") | |
| return x**2 | |
| def main(): | |
| print("the square is", square.call(42)) | |