Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,11 +23,11 @@ HF_TOKEN = ""
|
|
23 |
# raise ValueError("HF_TOKEN not set. Add it in Space settings.")
|
24 |
|
25 |
# Log in to Hugging Face Hub with the token
|
26 |
-
try:
|
27 |
-
login(token="")
|
28 |
-
logger.info("Successfully logged in to Hugging Face Hub")
|
29 |
-
except Exception as e:
|
30 |
-
raise ValueError(f"Failed to log in to Hugging Face Hub: {str(e)}")
|
31 |
|
32 |
hf_api = HfApi()
|
33 |
|
|
|
23 |
# raise ValueError("HF_TOKEN not set. Add it in Space settings.")
|
24 |
|
25 |
# Log in to Hugging Face Hub with the token
|
26 |
+
#try:
|
27 |
+
#login(token="")
|
28 |
+
#logger.info("Successfully logged in to Hugging Face Hub")
|
29 |
+
#except Exception as e:
|
30 |
+
# raise ValueError(f"Failed to log in to Hugging Face Hub: {str(e)}")
|
31 |
|
32 |
hf_api = HfApi()
|
33 |
|