| CI builds the image, Modal serves it 5693bd5 nandi 13h ago | 1 | """Generated stub -- the container is defined by container.toml. |
| 2 | |
| 3 | Edit container.toml, not this file. |
| 4 | """ |
| 5 | |
| 6 | import os |
| 7 | import sys |
| 8 | |
| 9 | sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) |
| 10 | |
| 11 | from _loader import Container # noqa: E402 |
| 12 | |
| 13 | c = Container.from_toml(__file__) |
| 14 | image, app = c.image, c.app |
| 15 | |
| 16 | # A web container's Function is not vestigial the way a sandbox's is: it *is* |
| 17 | # the container. Registered at import time so that `modal deploy` finds it, |
| 18 | # and so that the re-import inside the container binds the same body. |
| 19 | serve = c.register_web() |