Skip to content

Commit f7b7696

Browse files
committed
changes
1 parent 788eb8c commit f7b7696

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/python/gradio_client/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Client:
7676
def __init__(
7777
self,
7878
src: str,
79-
hf_token: str | Literal[False] | None = None,
79+
hf_token: str | Literal[False] | None = False,
8080
max_workers: int = 40,
8181
verbose: bool = True,
8282
auth: tuple[str, str] | None = None,
@@ -90,7 +90,7 @@ def __init__(
9090
"""
9191
Parameters:
9292
src: either the name of the Hugging Face Space to load, (e.g. "abidlabs/whisper-large-v2") or the full URL (including "http" or "https") of the hosted Gradio app to load (e.g. "http://mydomain.com/app" or "https://bec81a83-5b5c-471e.gradio.live/").
93-
hf_token: optional Hugging Face token to use to access private Spaces. By default, the locally saved token is used if there is one (warning: only provide a token if you are loading a trusted private Space as the token can be read by the Space you are loading). If False, no token is sent to the server. Find your tokens here: https://huggingface.co/settings/tokens.
93+
hf_token: optional Hugging Face token to use to access private Spaces. By default, no token is sent to the server. Set `hf_token=None` to use the locally saved token if there is one (warning: only provide a token if you are loading a trusted private Space as the token can be read by the Space you are loading). Find your tokens here: https://huggingface.co/settings/tokens.
9494
max_workers: maximum number of thread workers that can be used to make requests to the remote Gradio app simultaneously.
9595
verbose: whether the client should print statements to the console.
9696
headers: additional headers to send to the remote Gradio app on every request. By default only the HF authorization and user-agent headers are sent. This parameter will override the default headers if they have the same keys.

0 commit comments

Comments
 (0)