adsurkasur commited on
Commit
f1cd7cd
·
verified ·
1 Parent(s): 2ac0745

Fix port configuration: default to 7860 for Hugging Face Spaces

Browse files
Files changed (1) hide show
  1. start.sh +2 -2
start.sh CHANGED
@@ -1,7 +1,7 @@
1
  #!/usr/bin/env bash
2
  # Start script for production: uses gunicorn to serve the Flask app
3
- # Bind to the PORT environment variable (set by hosting platforms). Defaults to 5000.
4
- PORT=${PORT:-5000}
5
 
6
  echo "Starting gunicorn on 0.0.0.0:${PORT}..."
7
  exec gunicorn --bind 0.0.0.0:${PORT} --workers 1 --threads 4 --timeout 120 app:app
 
1
  #!/usr/bin/env bash
2
  # Start script for production: uses gunicorn to serve the Flask app
3
+ # Bind to the PORT environment variable (set by hosting platforms). Defaults to 7860.
4
+ PORT=${PORT:-7860}
5
 
6
  echo "Starting gunicorn on 0.0.0.0:${PORT}..."
7
  exec gunicorn --bind 0.0.0.0:${PORT} --workers 1 --threads 4 --timeout 120 app:app