42Cummer commited on
Commit
871f6a9
·
verified ·
1 Parent(s): cdd49ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  from flask import Flask, render_template, request, jsonify # type: ignore
2
  from math import log2
3
  import numpy as np # type: ignore
 
4
  import time
5
 
6
  POSSIBLE_WORDS = set()
@@ -358,4 +359,5 @@ def reset_game():
358
  return jsonify({'word': 'ARISE'})
359
 
360
  if __name__ == '__main__':
361
- app.run(debug=True, host='0.0.0.0', port=7860)
 
 
1
  from flask import Flask, render_template, request, jsonify # type: ignore
2
  from math import log2
3
  import numpy as np # type: ignore
4
+ import os
5
  import time
6
 
7
  POSSIBLE_WORDS = set()
 
359
  return jsonify({'word': 'ARISE'})
360
 
361
  if __name__ == '__main__':
362
+ port = int(os.environ.get("PORT", 7860))
363
+ app.run(debug=True, host='0.0.0.0', port=port)app.run(debug=True, host='0.0.0.0', port=7860)