Suprito commited on
Commit
b643f1b
·
verified ·
1 Parent(s): 08377cc

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +11 -0
start.sh CHANGED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Start FastAPI in the background
4
+ uvicorn main:app --host 0.0.0.0 --port 8000 &
5
+
6
+ # Wait a few seconds for the API to initialize
7
+ sleep 5
8
+
9
+ # Start Streamlit in the FOREGROUND (No '&' at the end)
10
+ # This keeps the container running
11
+ streamlit run app.py --server.port 7860 --server.address 0.0.0.0