-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradio queue function not work at windows 2019 server powershell #4243
Comments
not only this code not work, any code with demo.queue() does not work. without demo.queue(), it works fine. |
Hi @tianlichunhong ! What version of gradio are you using? |
version from 3.25.0 to 3.31.0 all have the problem. And i had found the reason. It is the OS proxy. When set a proxy for OS, queue doesn't work. When delete the OS proxy, then start gradio with queue, it works fine. After the gradio start, then you set a proxy for OS, it doesn't impact, gradio works normal. |
Hi @tianlichunhong what do you mean by OS proxy? Can you provide step-by-step instructions on what you mean by "setting a proxy" so that we can try to reproduce and fix this issue? |
I'll go ahead and close this for lack of follow up. But if you are able to provide a clear repro @tianlichunhong, feel free to reopen |
Thanks @tianlichunhong I'll reopen so that we can take a look at this |
Hi @tianlichunhong I don't think we can solve this on our end. Probably the Windows LAN proxy you are using does not support websockets. Sometimes, there are proxies that don't support websockets for "security reasons": https://stackoverflow.com/questions/9612690/websockets-and-a-proxy |
Thank you very much! Is there any way to set gradio proxy? for example to set proxy=none. |
Describe the bug
show erro in the web page.
Is there an existing issue for this?
Reproduction
import gradio as gr
import sys
class Logger:
def init(self, filename):
self.terminal = sys.stdout
self.log = open(filename, "w")
sys.stdout = Logger("output.log")
def test(x):
print("This is a test")
print(f"Your function is running with input {x}...")
return x
def read_logs():
sys.stdout.flush()
with open("output.log", "r") as f:
return f.read()
with gr.Blocks() as demo:
with gr.Row():
input = gr.Textbox()
output = gr.Textbox()
btn = gr.Button("Run")
btn.click(test, input, output)
demo.queue().launch()
Screenshot
No response
Logs
System Info
Severity
annoying
The text was updated successfully, but these errors were encountered: