Ahmedik95316 commited on
Commit
a3ad610
·
1 Parent(s): 5656120

Update start.sh

Browse files

Updated the file to run both FastAPI and Streamlit

Files changed (1) hide show
  1. start.sh +10 -3
start.sh CHANGED
@@ -1,8 +1,15 @@
1
  #!/bin/bash
2
 
3
- # Start background scripts
4
  python scheduler/schedule_tasks.py &> logs/scheduler.log &
5
  python monitor/monitor_drift.py &> logs/monitor.log &
6
 
7
- # Start Streamlit in the foreground
8
- exec streamlit run app/streamlit_app.py --server.port=7860 --server.address=0.0.0.0 --server.enableCORS false --server.enableXsrfProtection false
 
 
 
 
 
 
 
 
1
  #!/bin/bash
2
 
3
+ # Start background jobs
4
  python scheduler/schedule_tasks.py &> logs/scheduler.log &
5
  python monitor/monitor_drift.py &> logs/monitor.log &
6
 
7
+ # Start FastAPI (internal port)
8
+ uvicorn app.fastapi_server:app --host 127.0.0.1 --port 8000 &
9
+
10
+ # Start Streamlit (foreground)
11
+ exec streamlit run app/streamlit_app.py \
12
+ --server.port=7860 \
13
+ --server.address=0.0.0.0 \
14
+ --server.enableCORS false \
15
+ --server.enableXsrfProtection false