Increase websocket size to 1 GB (#2709)

* websocket size

* changelog
This commit is contained in:
Abubakar Abid 2022-11-22 20:37:05 -08:00 committed by GitHub
parent 4b0820a9fb
commit 69146696d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,8 @@ io = gr.Interface(echo, "textbox", "textbox").launch()
## Bug Fixes: ## Bug Fixes:
No changes to highlight. * Fixed bug that limited files from being sent over websockets to 16MB. The new limit
is now 1GB by [@abidlabs](https://github.com/abidlabs) in [PR 2709](https://github.com/gradio-app/gradio/pull/2709)
## Documentation Changes: ## Documentation Changes:
* Updated documentation for embedding Gradio demos on Spaces as web components by * Updated documentation for embedding Gradio demos on Spaces as web components by

View File

@ -150,6 +150,7 @@ def start_server(
ssl_keyfile=ssl_keyfile, ssl_keyfile=ssl_keyfile,
ssl_certfile=ssl_certfile, ssl_certfile=ssl_certfile,
ssl_keyfile_password=ssl_keyfile_password, ssl_keyfile_password=ssl_keyfile_password,
ws_max_size=1024 * 1024 * 1024, # Setting max websocket size to be 1 GB
) )
server = Server(config=config) server = Server(config=config)
server.run_in_thread() server.run_in_thread()