Update src/ozai_webui/__init__.py

This commit is contained in:
Adrian Gunnar Lauterer 2024-09-08 02:07:37 +02:00
parent 12a8265b9f
commit 07573f4067
1 changed files with 2 additions and 2 deletions

View File

@ -221,8 +221,8 @@ def ws_message(data):
socketio.emit('move_status', response.text, room=game_id) socketio.emit('move_status', response.text, room=game_id)
def main (): def main ():
# app.run(debug=True, host='0.0.0.0', port=5000,ssl_context='adhoc') return app.run(host=ozai_webui_host, port=ozai_webui_port)
return socketio.run(app, debug=False, host=ozai_webui_host, port=ozai_webui_port, allow_unsafe_werkzeug=True) #return socketio.run(app, debug=False, host=ozai_webui_host, port=ozai_webui_port, allow_unsafe_werkzeug=True)
if __name__ == '__main__': if __name__ == '__main__':
main() main()