quantumbit commited on
Commit
7621eed
·
verified ·
1 Parent(s): 9176980

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -76,4 +76,7 @@ def mission():
76
 
77
 
78
  if __name__ == "__main__":
79
- app.run(debug=True, host="0.0.0.0", port=5000)
 
 
 
 
76
 
77
 
78
  if __name__ == "__main__":
79
+ import os
80
+ port = int(os.environ.get("PORT", 7860)) # HF uses 7860
81
+ app.run(host="0.0.0.0", port=port, debug=False)
82
+