Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -160,7 +160,7 @@ class HfAgentWrapper:
|
|
160 |
try:
|
161 |
print(f"Attempting to initialize HfAgent directly with model: {model_id_or_path}")
|
162 |
|
163 |
-
hf_auth_token = os.getenv("
|
164 |
if not hf_auth_token:
|
165 |
# Starcoderbase might be gated or require login for some operations/configs
|
166 |
print("WARNING: HF_AUTH_TOKEN secret not found. This might cause issues if the model requires full authentication.")
|
|
|
160 |
try:
|
161 |
print(f"Attempting to initialize HfAgent directly with model: {model_id_or_path}")
|
162 |
|
163 |
+
hf_auth_token = os.getenv("HF_TOKEN")
|
164 |
if not hf_auth_token:
|
165 |
# Starcoderbase might be gated or require login for some operations/configs
|
166 |
print("WARNING: HF_AUTH_TOKEN secret not found. This might cause issues if the model requires full authentication.")
|