thisisgini commited on
Commit
558bda6
·
verified ·
1 Parent(s): ff07741

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -75,6 +75,6 @@ def shutdown_event():
75
 
76
  if __name__ == "__main__":
77
  import uvicorn
78
- # Hugging Face Spaces usually listens on port 7860
79
- port = int(os.environ.get("PORT", 7860))
80
- uvicorn.run(app, host="0.0.0.0", port=port)
 
75
 
76
  if __name__ == "__main__":
77
  import uvicorn
78
+ # We ignore the environment variable and force 7860
79
+ # to ensure the Hugging Face Load Balancer always connects.
80
+ uvicorn.run(app, host="0.0.0.0", port=7860)