diff --git a/CHANGELOG.md b/CHANGELOG.md index 3939520105576..c3bfccd40726f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ ## Bug Fixes: - Fix "TypeError: issubclass() arg 1 must be a class" When use Optional[Types] by [@lingfengchencn](https://github.com/lingfengchencn) in [PR 4200](https://github.com/gradio-app/gradio/pull/4200). -- Gradio will no longer send any analytics if analytics are disabled with the GRADIO_ANALYTICS_ENABLED environment variable. By [@akx](https://github.com/akx) in [PR 4194](https://github.com/gradio-app/gradio/pull/4194) +- Gradio will no longer send any analytics or call home if analytics are disabled with the GRADIO_ANALYTICS_ENABLED environment variable. By [@akx](https://github.com/akx) in [PR 4194](https://github.com/gradio-app/gradio/pull/4194) and [PR 4236](https://github.com/gradio-app/gradio/pull/4236) - The deprecation warnings for kwargs now show the actual stack level for the invocation, by [@akx](https://github.com/akx) in [PR 4203](https://github.com/gradio-app/gradio/pull/4203). - Fix "TypeError: issubclass() arg 1 must be a class" When use Optional[Types] by [@lingfengchencn](https://github.com/lingfengchencn) in [PR 4200](https://github.com/gradio-app/gradio/pull/4200). - Fixes a bug with typing.get_type_hints() on Python 3.9 by [@abidlabs](https://github.com/abidlabs) in [PR 4228](https://github.com/gradio-app/gradio/pull/4228). diff --git a/gradio/strings.py b/gradio/strings.py index 0c81ddb74ea28..21b9f98c349df 100644 --- a/gradio/strings.py +++ b/gradio/strings.py @@ -1,4 +1,5 @@ import json +import os import threading from typing import Dict @@ -45,4 +46,5 @@ def get_updated_messaging(en: Dict): pass -threading.Thread(target=get_updated_messaging, args=(en,)).start() +if os.getenv("GRADIO_ANALYTICS_ENABLED", "True") == "True": + threading.Thread(target=get_updated_messaging, args=(en,)).start()