Fix custom component detection logic in analytics (#8254)

* Add code

* add changeset

* revert

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Freddy Boulton 2024-05-09 19:49:51 -04:00 committed by GitHub
parent 32d915aad5
commit 0a6f0a7e02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"gradio": patch
---
feat:Fix custom component detection logic in analytics

View File

@ -224,7 +224,7 @@ def launched_analytics(blocks: gradio.Blocks, data: dict[str, Any]) -> None:
return [b.get_block_name() for b in components] if components else None
return fallback
core_components = core_gradio_components()
core_components = [get_block_name(c) for c in core_gradio_components()]
additional_data = {
"version": get_package_version(),