Closed MobisParkHeekang closed 4 months ago
Hi @MobisParkHeekang ! What exactly is the error that's happening? It's expected that the data format sent from the server to change because we will only send the diff. Can you please share the custom component you're developing?
Thank you for your reply. Unfortunately, the component is on the company's private server, so it cannot be shared. However, your expectation sounds really plausible. Can you please tell me in which file the diff calculation and sending occur?
Hi @MobisParkHeekang you may want to check this out:
Can you please tell me in which js(or svelte) file ‘rebuild’ value from diffs sent from FastAPI server?
The js client will rebuild the value based on the diff: https://github.com/gradio-app/gradio/blob/35905c5c8f7acbe669486ac8f57b6955328e4783/client/js/src/utils/submit.ts#L597
Describe the bug
I define a complex object like below:
When I stream data with
yield
, errors emerge.SSE data suddenly changes from below:
to below:
However, if I put
time.sleep()
(currently commented out), errors do not emerge.Have you searched existing issues? 🔎
Reproduction
types
streaming function
Screenshot
No response
Logs
No response
System Info
Severity
Blocking usage of gradio