mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-23 11:39:17 +08:00
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:
parent
9a0bd27502
commit
24e048196e
6
.changeset/tough-beers-unite.md
Normal file
6
.changeset/tough-beers-unite.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"gradio": patch
|
||||
"gradio_client": patch
|
||||
---
|
||||
|
||||
feat:Hotfix: update `huggingface_hub` dependency version
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user