samarth upadhyay commited on
Update start.sh
Browse files
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
|
| 44 |
-
echo "Starting
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|