server

api

baas.server.api._GPU = None

The following environment variables are used to configure the modal deployment:

NAME

DESCRIPTION

DEFAULT

BAAS_DEPLOYMENT_TAG

BaaS image tag. Default

prod-latest

BAAS_MIN_CONTAINERS

Minimum number of containers

0

BAAS_MAX_CONTAINERS

Maximum number of containers

4

BAAS_GPU

GPU type

None

baas.server.api.get_app(tag='prod-latest')[source]

Creates a BaaS modal app.

Parameters:

tag (str) – BaaS image tag. Default: prod-latest.

Returns:

BaaS app and image.

Return type:

(modal.App, modal.Image)