You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering an unusual issue while deploying my chatbot as a server on Google Cloud. The streaming functionality works perfectly fine locally. I use yield in my code to present two text segments with approximately 10 to 30 seconds in between. The intended flow is as follows:
User clicks submit -> (3 - 5 seconds) -> first part of text -> (10 - 30 seconds) -> second part of text -> end
However, on the GCP server, even though there is a 'stop' button visible after the user clicks 'submit,' indicating that streaming mode is active, the first part of the text does not appear until the very end, coinciding with the completion of the second part of the text. Another different thing is that on the GCP server, there is no processing shown in the top right corner, while locally there is (see screenshot 2). The flow is disrupted as follows:
User clicks submit -> (10 - 30 seconds) -> first part of text -> (< 0.5 seconds) -> second part of text -> end
I am uncertain about the root cause of this issue and would appreciate any assistance or insights. Thank you in advance for your help!
Describe the bug
Hello,
I am encountering an unusual issue while deploying my chatbot as a server on Google Cloud. The streaming functionality works perfectly fine locally. I use
yield
in my code to present two text segments with approximately 10 to 30 seconds in between. The intended flow is as follows:However, on the GCP server, even though there is a 'stop' button visible after the user clicks 'submit,' indicating that streaming mode is active, the first part of the text does not appear until the very end, coinciding with the completion of the second part of the text. Another different thing is that on the GCP server, there is no
processing
shown in the top right corner, while locally there is (see screenshot 2). The flow is disrupted as follows:I am uncertain about the root cause of this issue and would appreciate any assistance or insights. Thank you in advance for your help!
Have you searched existing issues? 🔎
Reproduction
in
main.py
, the code is:Screenshot
Locally:
![image](https://private-user-images.githubusercontent.com/27820994/343743080-499b10b0-31d0-46e1-89e3-9ecaa434f2ca.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4MTU2NzcsIm5iZiI6MTcxOTgxNTM3NywicGF0aCI6Ii8yNzgyMDk5NC8zNDM3NDMwODAtNDk5YjEwYjAtMzFkMC00NmUxLTg5ZTMtOWVjYWE0MzRmMmNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAxVDA2MjkzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZlOGU2MWQxNjNjOTJmODI3NWYxY2U3NjIzZWU1Y2Q1MDlkMzRiMGE2NzlmZDhmNWFjOGYwOTRmYjdhNjRhZDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.___452zWCTYUJk8lt72zKySCewQOel5vdrVSXAWYHqQ)
Fig 1: streaming works fine locally
Fig 2:
![image](https://private-user-images.githubusercontent.com/27820994/343743240-e57d5228-f940-4503-bedf-13568ae697bb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4MTU2NzcsIm5iZiI6MTcxOTgxNTM3NywicGF0aCI6Ii8yNzgyMDk5NC8zNDM3NDMyNDAtZTU3ZDUyMjgtZjk0MC00NTAzLWJlZGYtMTM1NjhhZTY5N2JiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAxVDA2MjkzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcxNWQzMTA1OGQyN2VjNDFmMzg0MWQ1ZGI0OTFlZTNjYjU3Yzk4ODJjNzhjYjc3NDQzYjExMWQ1NjM1ZWM2OWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tkfo1yhRpCbf374eVPr-8IJ40_aal-rBXnKMXYSWvKY)
Processing
shown on the top right cornerOn GCP:
![image](https://private-user-images.githubusercontent.com/27820994/343741483-338e21ba-08a7-427e-81e9-1893d1fb995e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4MTU2NzcsIm5iZiI6MTcxOTgxNTM3NywicGF0aCI6Ii8yNzgyMDk5NC8zNDM3NDE0ODMtMzM4ZTIxYmEtMDhhNy00MjdlLTgxZTktMTg5M2QxZmI5OTVlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAxVDA2MjkzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM2NjA0NTY1NGVjYzkyYzliYTc3OTAyMTVmMjBlMTBiNzc3YzIyMWUxNTYyNGQ5YzNlMzk2Y2EwMmY0Y2JhMDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ufi5vurWsE4abXOVwCxeNCuzuKTXnXyr1vH5yjEXhwE)
Fig 3:
processing
is not shown in the top right corner, and streaming is not working on GCPLogs
No response
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: