mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
Update app.py
This commit is contained in:
parent
2648461e44
commit
d3c9e45c25
5
app.py
5
app.py
@ -25,7 +25,8 @@ import threading
|
||||
app = FastAPI()
|
||||
|
||||
# Create a Socket.IO server
|
||||
sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins="*") # Enable CORS for all origins
|
||||
sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins="*", ping_timeout=1200, ping_interval=30) # Enable CORS for all origins
|
||||
|
||||
|
||||
|
||||
@sio.event
|
||||
@ -188,4 +189,4 @@ if __name__ == "__main__":
|
||||
trace_exception(ex)
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user