Dacho688 commited on
Commit
0878909
·
1 Parent(s): f6e6899

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  import spaces
4
  from huggingface_hub import InferenceClient,login,whoami
5
 
6
- if not whoami():
7
  login(os.getenv("HUGGINGFACEHUB_API_TOKEN"))
8
 
9
  client=InferenceClient()
 
3
  import spaces
4
  from huggingface_hub import InferenceClient,login,whoami
5
 
6
+ if not whoami(False):
7
  login(os.getenv("HUGGINGFACEHUB_API_TOKEN"))
8
 
9
  client=InferenceClient()