Skip to content
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

unexpected network negotiations? #22

Closed
vseledkin opened this issue Jul 10, 2020 · 1 comment
Closed

unexpected network negotiations? #22

vseledkin opened this issue Jul 10, 2020 · 1 comment

Comments

@vseledkin
Copy link

Simplest demo

import gradio as gr
def greet(name):
return "Hello " + name + "!"
gr.Interface(fn=greet, inputs="text", outputs="text").launch()

responds on submit button much faster if network connection is not available for app.
Why?

i. e.

python demo.py
response time 1.26s

sandbox-exec -f nonetwork.sb python demo.py
response time 0.014s

@dawoodkhan82
Copy link
Collaborator

This was because of analytics on usage of the interfaces being sent over the network. This has been moved to the background in the latest commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants