-
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!!
wattai/pg-modal
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||