openfree commited on
Commit
29d77cd
·
verified ·
1 Parent(s): 32c33a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -2070,4 +2070,8 @@ if __name__ == '__main__':
2070
  </html>
2071
  ''')
2072
 
2073
- app.run(host='0.0.0.0', port=7860)
 
 
 
 
 
2070
  </html>
2071
  ''')
2072
 
2073
+
2074
+
2075
+ if __name__ == '__main__':
2076
+ port = int(os.environ.get("PORT", 7860))
2077
+ app.run(host='0.0.0.0', port=port)