File size: 400 Bytes
6015c25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

echo "Starting AI Life Coach..."

# Start FastAPI backend in background
echo "Starting FastAPI backend..."
uvicorn api.main:app --host 0.0.0.0 --port 8000 &
BACKEND_PID=0

# Give backend a moment to start
sleep 3

# Start Streamlit frontend
echo "Starting Streamlit frontend..."
streamlit run app.py --server.port 8501 --server.address 0.0.0.0

# Kill backend when Streamlit exits
kill