From 4311f0f67f34980ff08b9107f8b30039ce218315 Mon Sep 17 00:00:00 2001 From: F-G Fernandez <26927750+frgfm@users.noreply.github.com> Date: Fri, 29 Mar 2024 23:56:10 +0100 Subject: [PATCH] fix(demo): fix method type --- demo/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/main.py b/demo/main.py index 9501c9c..87247bb 100644 --- a/demo/main.py +++ b/demo/main.py @@ -31,7 +31,7 @@ def set_token(self, token: str) -> None: self._token = token if ph_client is not None: # Retrieve the user ID - self.user_id = requests.post(f"{self._url}/login/validate", timeout=2, headers=self.auth).json()["user_id"] + self.user_id = requests.get(f"{self._url}/login/validate", timeout=2, headers=self.auth).json()["user_id"] # Analytics ph_client.capture(self.user_id, event="gradio-auth")