Skip to content

Commit 4ffab3e

Browse files
authored
Small fix for version check before reuploading demos (#2469)
* fix comparison for version * Update CHANGELOG.md
1 parent 831ae14 commit 4ffab3e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ No changes to highlight.
7979

8080
## Full Changelog:
8181
* Enable running events to be cancelled from other events by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 2433](https://github.com/gradio-app/gradio/pull/2433)
82+
* Small fix for version check before reuploading demos by [@aliabd](https://github.com/aliabd) in [PR 2469](https://github.com/gradio-app/gradio/pull/2469)
8283

8384
## Contributors Shoutout:
8485
No changes to highlight.

website/homepage/upload_demos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ def upload_demo_to_space(
6666

6767
if __name__ == "__main__":
6868
if AUTH_TOKEN is not None:
69-
if huggingface_hub.space_info("gradio/hello_world").cardData["sdk_version"] != gradio_version:
69+
if str(huggingface_hub.space_info("gradio/hello_world").cardData["sdk_version"]) != gradio_version:
7070
for demo in demos:
7171
upload_demo_to_space(demo_name=demo, space_id="gradio/" + demo, hf_token=AUTH_TOKEN, gradio_version=gradio_version)

0 commit comments

Comments
 (0)