-
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
Reduce the analytics that are collected in Gradio #8263
Conversation
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-builds.s3.amazonaws.com/840b6bef9cd79a01d3e0ab887f0c3e6ae3379d5c/gradio-4.31.0-py3-none-any.whl Install Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@840b6bef9cd79a01d3e0ab887f0c3e6ae3379d5c#subdirectory=client/python" |
🦄 change detectedThis Pull Request includes changes to the following packages.
With the following changelog entry.
Maintainers or the PR author can modify the PR title to modify this entry.
|
@@ -324,6 +324,7 @@ def test_upload_and_download_with_auth(self): | |||
with open(output) as f: | |||
assert f.read() == "Hello file!" | |||
|
|||
@pytest.mark.flaky |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated but this is a flaky test and I'm not sure why
Looks great @abidlabs ! |
@@ -464,3 +465,17 @@ demo.launch(max_file_size=5 * gr.FileSize.MB) | |||
``` | |||
|
|||
Please make sure you are running the latest version of `gradio` for these security settings to apply. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally think this is way too much content about analytics in the getting started guide @abidlabs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This guide is no longer in the getting started section :)
* What environment the Gradio app is running on (e.g. Colab Notebook, Hugging Face Spaces) | ||
* What input/output components are being used in the Gradio app | ||
* Whether the Gradio app is utilizing certain advanced features, such as `auth` or `show_error` | ||
* The IP address which is used solely to measure the number of unique developers using Gradio |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe more precise The IP address of the server
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah let me fix in another pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
I'll add my own 2 euro-cents here. First of all, this PR is a step in the right direction with at least some documentation of the tracking done by gradio and ways to mitigate that. But the documentation is misleading. Simply importing gradio will trigger home-phoning HTTP calls (done on 4.31.0 which my team currently has pinned, but
This is done here Lines 39 to 40 in b67f7ff
GRADIO_ANALYTICS_ENABLED environment variable.
This is incredibly poor taste (importing code should hardly ever do anything, let alone do HTTP calls) and a massive GDPR violation as consent was never given for such data collection. IMHO gradio should come free of all external calls, the environment variable should simply not exist. There are many ways to collect insightful usage of gradio without compromising basic privacy: user surveys advertised through x/twitter, github, newsletters, etc. The analytics code could be kept around but in a separate package, the way Debian does it: Thanks for reading. |
Remove Google Analytics from Gradio apps and document the analytics that we do track from developers.