-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
89d11a5
reduce analytics
abidlabs 40452bc
add changeset
gradio-pr-bot 0f4846a
Merge branch 'main' into reduce-analytics
abidlabs 5295020
Merge branch 'main' into reduce-analytics
abidlabs cf243af
mark flaky
abidlabs 0fbf29a
lint
abidlabs 83f878c
Merge branch 'main' into reduce-analytics
freddyaboulton 840b6be
add changeset
gradio-pr-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@gradio/app": patch | ||
"gradio": patch | ||
--- | ||
|
||
feat:Reduce the analytics that are collected in Gradio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ In this Guide, we dive more deeply into the various aspects of sharing a Gradio | |
6. [Mounting within FastAPI](#mounting-within-another-fast-api-app) | ||
7. [Authentication](#authentication) | ||
8. [Security and file access](#security-and-file-access) | ||
9. [Analytics](#analytics) | ||
|
||
## Sharing Demos | ||
|
||
|
@@ -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. | ||
|
||
## Analytics | ||
|
||
By default, Gradio collects certain analytics to help us better understand the usage of the `gradio` library. This includes the following information: | ||
|
||
* 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 commentThe reason will be displayed to describe this comment to others. Learn more. maybe more precise There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah yeah let me fix in another pr |
||
* The version of Gradio that is running | ||
|
||
No information is collected from _users_ of your Gradio app. If you'd like to diable analytics altogether, you can do so by setting the `analytics_enabled` parameter to `False` in `gr.Blocks`, `gr.Interface`, or `gr.ChatInterface`. Or, you can set the GRADIO_ANALYTICS_ENABLED environment variable to `"False"` to apply this to all Gradio apps created across your system. | ||
|
||
*Note*: this reflects the analytics policy as of `gradio>=4.32.0`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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