samarth upadhyay commited on
Commit
b17aebc
·
verified ·
1 Parent(s): a5f9eb3

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +6 -3
start.sh CHANGED
@@ -40,6 +40,9 @@ mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'playground'@'localhost';"
40
  mysql -e "FLUSH PRIVILEGES;"
41
 
42
 
43
- # --- 3. Start Flask App ---
44
- echo "Starting Flask API..."
45
- python app.py
 
 
 
 
40
  mysql -e "FLUSH PRIVILEGES;"
41
 
42
 
43
+ # --- 3. Start Gunicorn Server (Parallel Workers) ---
44
+ echo "Starting Gunicorn..."
45
+ # -w 4: Use 4 worker processes (handles 4 requests at once)
46
+ # -b 0.0.0.0:7860: Bind to the Hugging Face port
47
+ # --timeout 30: Allow longer queries if needed
48
+ exec gunicorn -w 4 -b 0.0.0.0:7860 app:app