maham234 commited on
Commit
5ba1447
·
verified ·
1 Parent(s): 7000dce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -113,4 +113,7 @@ def tryon():
113
 
114
 
115
  if __name__ == "__main__":
116
- app.run(debug=True, host="0.0.0.0", port=5000)
 
 
 
 
113
 
114
 
115
  if __name__ == "__main__":
116
+ import os
117
+ port = int(os.environ.get("PORT", 5000))
118
+ app.run(host="0.0.0.0", port=port, debug=False)
119
+