From 19f6b31a73c6114093cbb5a7e69131175efa8a79 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Thu, 12 Sep 2024 11:09:33 -0700 Subject: [PATCH] Fix typo in `tunneling.py` (#9338) * tunneling fix * add changeset --------- Co-authored-by: gradio-pr-bot --- .changeset/floppy-keys-heal.md | 5 +++++ gradio/tunneling.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/floppy-keys-heal.md diff --git a/.changeset/floppy-keys-heal.md b/.changeset/floppy-keys-heal.md new file mode 100644 index 0000000000000..e8db79d627491 --- /dev/null +++ b/.changeset/floppy-keys-heal.md @@ -0,0 +1,5 @@ +--- +"gradio": minor +--- + +feat:Fix typo in `tunneling.py` diff --git a/gradio/tunneling.py b/gradio/tunneling.py index 5a84e32cac159..0d7bf4d9b8b5b 100644 --- a/gradio/tunneling.py +++ b/gradio/tunneling.py @@ -71,7 +71,7 @@ def __init__(self, remote_host, remote_port, local_host, local_port, share_token @staticmethod def download_binary(): - if Path(BINARY_PATH).exists(): + if not Path(BINARY_PATH).exists(): resp = httpx.get(BINARY_URL, timeout=30) if resp.status_code == 403: