File size: 336 Bytes
d7171f4
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
#!/bin/bash

# 1. Start the FastAPI backend in the background on port 8000
# (Your Streamlit app already points to http://localhost:8000/api/v1)
uvicorn main:app --host 0.0.0.0 --port 8000 &

# 2. Start the Streamlit frontend on port 7860 (Hugging Face Default)
streamlit run frontend/app.py --server.port 7860 --server.address 0.0.0.0