Spaces:
Sleeping
Sleeping
Dacho688 commited on
Commit ·
0878909
1
Parent(s): f6e6899
Update app.py
Browse files
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()
|