Hotfix: update huggingface_hub dependency version (#6704)

* update requirements of hfhub

* add changeset

* requirements

* add changeset

* fixed

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Abubakar Abid 2023-12-07 15:07:23 -08:00 committed by GitHub
parent 9a0bd27502
commit 24e048196e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 15 deletions

View File

@ -0,0 +1,6 @@
---
"gradio": patch
"gradio_client": patch
---
feat:Hotfix: update `huggingface_hub` dependency version

View File

@ -1,6 +1,6 @@
fsspec
httpx
huggingface_hub>=0.13.0
huggingface_hub>=0.19.3
packaging
typing_extensions~=4.0
websockets>=10.0,<12.0

View File

@ -4,7 +4,7 @@ fastapi
ffmpy
gradio_client==0.7.1
httpx
huggingface_hub>=0.14.0
huggingface_hub>=0.19.3
importlib_resources>=1.3,<7.0
Jinja2<4.0
markupsafe~=2.0

View File

@ -240,6 +240,8 @@ class TestGetThemeAssets:
},
],
tags=["gradio-theme", "gradio"],
private=False,
likes=0,
)
assert get_theme_assets(space_info) == [
@ -257,18 +259,6 @@ class TestGetThemeAssets:
theme = gr.Theme.from_hub("gradio/seafoam")
assert isinstance(theme, gr.Theme)
# def test_raises_if_space_not_properly_tagged(self):
# space_info = huggingface_hub.hf_api.SpaceInfo(
# id="freddyaboulton/dracula", tags=["gradio"]
# )
# with pytest.raises(
# ValueError,
# match="freddyaboulton/dracula is not a valid gradio-theme space!",
# ):
# with patch("huggingface_hub.HfApi.space_info", return_value=space_info):
# get_theme_assets(space_info)
class TestBuiltInThemes:
@pytest.mark.parametrize(
@ -289,7 +279,7 @@ class TestThemeUploadDownload:
@patch("gradio.themes.base.get_theme_assets", return_value=assets)
def test_get_next_version(self, mock):
next_version = gr.themes.Base._get_next_version(
SpaceInfo(id="gradio/dracula_test")
SpaceInfo(id="gradio/dracula_test", private=False, likes=0, tags=[])
)
assert next_version == "3.20.2"