Deploy a FastHTML app in just a few lines of simple python code on Modal's serverless infra.
This template is an implementation of a streaming chat app with auto-scrolling and a simple UI where you can easily swap out the dummy generator with your own LLM.
pip install -r requirements.txt
python app.py
Visit modal.com and create a free account. Then follow the instructions to authenticate in your CLI.
Run the following command in your terminal:
modal deploy deploy.py
That's it!