-
Ensure you have Python>=3.9 installed. If not, you can download it from here.
-
Clone the repository to your local machine.
-
Navigate to the project directory and install the project dependencies with pip:
pip install -r requirements.txt
- Create a
.env
file in the project root directory and add the following environment variables:
SECRET_KEY=your_secret_key
uvicorn main:web_app --reload
We use modal for deployment which should have been installed while installing the requirements.txt file. Setup your modal account and token following the docs
Serve the server for an ephemeral deployment using the following command:
modal serve main
Deploy the server for a permanent deployment using the following command:
modal deploy main