Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
fix(demo): fix method type
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm committed Mar 29, 2024
1 parent 406bf60 commit 4311f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 4311f0f

Please sign in to comment.