tzurshubi commited on
Commit
c86cb9d
·
verified ·
1 Parent(s): 040ebc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -210,4 +210,6 @@ def update_game(nav_clicks, vote_clicks, data):
210
  return dash.no_update, dash.no_update
211
 
212
  if __name__ == "__main__":
213
- app.run(debug=True)
 
 
 
210
  return dash.no_update, dash.no_update
211
 
212
  if __name__ == "__main__":
213
+ import os
214
+ port = int(os.environ.get("PORT", "7860")) # HF uses 7860
215
+ app.run(host="0.0.0.0", port=port, debug=False)