Download scripts/modal_example.py from Ryukijano/conjugate: direct link, hf CLI and curl.
- Browser
- Download file 260 Bytes
-
https://huggingface.co/spaces/Ryukijano/conjugate/resolve/main/scripts/modal_example.py
- Command line
-
hf download hf://spaces/Ryukijano/conjugate/scripts/modal_example.py
-
curl -L -o modal_example.py https://huggingface.co/spaces/Ryukijano/conjugate/resolve/main/scripts/modal_example.py
260 Bytes
| import modal | |
| app = modal.App("example-get-started") | |
| def square(x: int) -> int: | |
| print("This code is running on a remote worker!") | |
| return x**2 | |
| def main() -> None: | |
| print("the square is", square.remote(42)) | |