diff --git a/client/python/gradio_client/serializing.py b/client/python/gradio_client/serializing.py index a74867f555a86..6a4315f6bffc1 100644 --- a/client/python/gradio_client/serializing.py +++ b/client/python/gradio_client/serializing.py @@ -543,8 +543,6 @@ def deserialize( "lineplot": JSONSerializable, "scatterplot": JSONSerializable, "markdown": StringSerializable, - "dataset": StringSerializable, "code": StringSerializable, - "interpretation": SimpleSerializable, "annotatedimage": JSONSerializable, } diff --git a/client/python/gradio_client/utils.py b/client/python/gradio_client/utils.py index 45bc5d7a33d7c..850e6f8882bd3 100644 --- a/client/python/gradio_client/utils.py +++ b/client/python/gradio_client/utils.py @@ -31,7 +31,7 @@ CONFIG_URL = "config" API_INFO_URL = "info" RAW_API_INFO_URL = "info?serialize=False" -SPACE_FETCHER_URL = "https://freddyaboulton-space-api-fetcher.hf.space/api" +SPACE_FETCHER_URL = "https://gradio-space-api-fetcher-v2.hf.space/api" RESET_URL = "reset" SPACE_URL = "https://hf.space/{}" @@ -46,6 +46,8 @@ "form", "accordion", "group", + "interpretation", + "dataset", } STATE_COMPONENT = "state" INVALID_RUNTIME = [ diff --git a/client/python/test/test_serializing.py b/client/python/test/test_serializing.py index 50a0d9b0709bf..8bf4fb1044988 100644 --- a/client/python/test/test_serializing.py +++ b/client/python/test/test_serializing.py @@ -22,9 +22,7 @@ def test_duplicate(serializer_class): def test_check_component_fallback_serializers(): for component_name, class_type in COMPONENT_MAPPING.items(): # skip components that cannot be instantiated without parameters - if component_name in ["dataset", "interpretation"] + list( - SKIP_COMPONENTS - {"state"} - ): + if component_name in SKIP_COMPONENTS: continue component = components.get_component_instance(component_name) assert isinstance(component, class_type)