Spaces:
Paused
Paused
Update app.py
Browse filesto address 401 Client Error: Unauthorized for url: https://huggingface.co/google/paligemma-3b-mix-224/raw/main/config.json
app.py
CHANGED
|
@@ -13,8 +13,8 @@ subprocess.run(
|
|
| 13 |
shell=True,
|
| 14 |
)
|
| 15 |
|
| 16 |
-
|
| 17 |
-
login(token=
|
| 18 |
|
| 19 |
# Cache for storing loaded models and their summaries
|
| 20 |
model_cache = {}
|
|
|
|
| 13 |
shell=True,
|
| 14 |
)
|
| 15 |
|
| 16 |
+
HF_TOKEN = os.getenv("HF_TOKEN")
|
| 17 |
+
login(token=HF_TOKEN, add_to_git_credential=True)
|
| 18 |
|
| 19 |
# Cache for storing loaded models and their summaries
|
| 20 |
model_cache = {}
|