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