-
Install python package
pip install -e .
-
Setup modal
Run this command, and it will show you a URL to authentication.
python -m modal setup
Follow the instruction, then you will see an response like below.
Token verified successfully!
-
Run your first modal app
modal run scripts/001-calc-square.py
Once you run the command above, you will see the output like below.
✓ Initialized. View run at https://modal.com/apps/... ✓ Created objects. ├── 🔨 Created mount /home/wattai/dev/pg-modal/scripts/001-calc-square.py └── 🔨 Created function square. This code is running on a remote worker! the square is 1764 Stopping app - local entrypoint completed. ✓ App completed. View run at https://modal.com/apps/...
Now that, you can see the result of
the square is 1764
.
🎉 Happy hacking!!
-
Notifications
You must be signed in to change notification settings - Fork 0
A playground for modal: a serverless GPU service
License
wattai/pg-modal
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A playground for modal: a serverless GPU service
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published