This commit is contained in:
Saifeddine ALOUI 2023-05-18 21:20:16 +02:00
parent 1c9307a23e
commit 2b5876c5dc
2 changed files with 4 additions and 2 deletions

4
.gitignore vendored
View File

@ -163,4 +163,6 @@ extensions/
web/.env.build
web/.env.dev
web/.env.development
node_modules/
node_modules/
*.crdownload

2
app.py
View File

@ -45,7 +45,7 @@ log = logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)
app = Flask("GPT4All-WebUI", static_url_path="/static", static_folder="static")
socketio = SocketIO(app, cors_allowed_origins="*", async_mode='gevent', ping_timeout=60, ping_interval=15)
socketio = SocketIO(app, cors_allowed_origins="*", async_mode='gevent', ping_timeout=200, ping_interval=15)
app.config['SECRET_KEY'] = 'secret!'
# Set the logging level to WARNING or higher