thecoderhere commited on
Commit
d4db33a
·
verified ·
1 Parent(s): 0f1d6b6

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +4 -2
run.py CHANGED
@@ -1,9 +1,11 @@
1
- from app import create_app
2
  import os
 
3
 
4
  app = create_app()
5
 
6
  if __name__ == '__main__':
7
- # Hugging Face uses port 7860
8
  port = int(os.environ.get('PORT', 7860))
 
9
  app.run(host='0.0.0.0', port=port, debug=False)
 
1
+ # run.py
2
  import os
3
+ from app import create_app
4
 
5
  app = create_app()
6
 
7
  if __name__ == '__main__':
8
+ # Hugging Face Spaces uses port 7860
9
  port = int(os.environ.get('PORT', 7860))
10
+ print(f"Starting Flask application on port {port}...")
11
  app.run(host='0.0.0.0', port=port, debug=False)