From d107aa826e934f3b0dbf0d6ebb173f7052beca5a Mon Sep 17 00:00:00 2001 From: Chandler-Bing Date: Fri, 22 Nov 2024 11:55:55 +0800 Subject: [PATCH 1/3] Update client.py Update client.py --- client/python/gradio_client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/python/gradio_client/client.py b/client/python/gradio_client/client.py index 585c3bdd2d6bd..ab571f79d26d5 100644 --- a/client/python/gradio_client/client.py +++ b/client/python/gradio_client/client.py @@ -156,7 +156,7 @@ def __init__( ) api_prefix: str = self.config.get("api_prefix", "") self.api_prefix = api_prefix.lstrip("/") + "/" - self.src_prefixed = urllib.parse.urljoin(self.src, api_prefix).rstrip("/") + "/" + self.src_prefixed = urllib.parse.urljoin(self.src, self.api_prefix).rstrip("/") + "/" self.api_url = urllib.parse.urljoin(self.src_prefixed, utils.API_URL) self.sse_url = urllib.parse.urljoin( From a2a474cdd0d35079193c37fcc31a8964cfacf53d Mon Sep 17 00:00:00 2001 From: gradio-pr-bot Date: Mon, 25 Nov 2024 17:59:04 +0000 Subject: [PATCH 2/3] add changeset --- .changeset/famous-oranges-shout.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/famous-oranges-shout.md diff --git a/.changeset/famous-oranges-shout.md b/.changeset/famous-oranges-shout.md new file mode 100644 index 0000000000000..7622945996eb3 --- /dev/null +++ b/.changeset/famous-oranges-shout.md @@ -0,0 +1,6 @@ +--- +"gradio": minor +"gradio_client": minor +--- + +feat:fix small bug when join src & api_prefix From 248dc748610fa4b4d84a5dee3a276b7cdacabedd Mon Sep 17 00:00:00 2001 From: Freddy Boulton Date: Mon, 25 Nov 2024 15:06:45 -0500 Subject: [PATCH 3/3] Update client.py --- client/python/gradio_client/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/python/gradio_client/client.py b/client/python/gradio_client/client.py index ab571f79d26d5..49669d97dabca 100644 --- a/client/python/gradio_client/client.py +++ b/client/python/gradio_client/client.py @@ -156,8 +156,9 @@ def __init__( ) api_prefix: str = self.config.get("api_prefix", "") self.api_prefix = api_prefix.lstrip("/") + "/" - self.src_prefixed = urllib.parse.urljoin(self.src, self.api_prefix).rstrip("/") + "/" - + self.src_prefixed = ( + urllib.parse.urljoin(self.src, self.api_prefix).rstrip("/") + "/" + ) self.api_url = urllib.parse.urljoin(self.src_prefixed, utils.API_URL) self.sse_url = urllib.parse.urljoin( self.src_prefixed,