Update app.py

Make program access to large files more robust.
pull/50/head
ChenhuiHu 1 year ago committed by GitHub
parent 7dc88c592a
commit 9196a5b669
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