gradio icon indicating copy to clipboard operation
gradio copied to clipboard

Add ability to disable Web sockets

Open ashishb opened this issue 2 months ago • 4 comments

  • [x] I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.
Web sockets don't work with many PAAS solutions that do not support sticky sessions.

Describe the solution you'd like
Provide an ability to explicitly disable web sockets

ashishb avatar Apr 24 '24 06:04 ashishb

Recent versions don't actually use web sockets but use Server sent events instead.

Could you provide more information on what platforms you have issues with and some example code/ an example application you have had difficulties with?

pngwn avatar Apr 24 '24 08:04 pngwn

Lots of https://github.com/gradio-app/gradio/issues/6920 when using Gradio on render.com

ashishb avatar Apr 24 '24 21:04 ashishb

Hi @ashishb ! Gradio does not use websockets in versions 4 and above. We can't debug this issue unless you share a minimal reproducer.

freddyaboulton avatar Apr 24 '24 21:04 freddyaboulton

Happy to create a sample demo. render.com uses K8s underneath so I am not surprised that I am experiencing the same issue as mentioned in https://github.com/gradio-app/gradio/issues/6920

ashishb avatar Apr 24 '24 23:04 ashishb

Goint to close this for now, but we can reopen with a repro

abidlabs avatar Apr 29 '24 14:04 abidlabs