ABDALLALSWAITI commited on
Commit
7fc84ea
·
verified ·
1 Parent(s): 8775ebc

Upload start.sh

Browse files
Files changed (1) hide show
  1. start.sh +10 -0
start.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Start FastAPI on port 7860 (Hugging Face default)
4
+ uvicorn api:app --host 0.0.0.0 --port 7860 &
5
+
6
+ # Start Streamlit on port 8501
7
+ streamlit run src/streamlit_app.py --server.port=8501 --server.address=0.0.0.0 --server.enableXsrfProtection=false --server.enableCORS=false &
8
+
9
+ # Wait for both processes
10
+ wait