Merge pull request #50 from ChenhuiHu/patch-1

Update app.py to make program access to large files more robust.
pull/45/head^2
Bhaskar Tripathi 1 year ago committed by GitHub
commit 8b7d9e4e61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -89,4 +89,6 @@ with gr.Blocks() as demo:
outputs=[answer],
)
demo.launch(server_port=7860)
demo.app.server.timeout = 60000 # Set the maximum return time for the results of accessing the upstream server
demo.launch(server_port=7860, enable_queue=True) # `enable_queue=True` to ensure the validity of multi-user requests

Loading…
Cancel
Save