Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,11 @@ import supervision as sv
|
|
19 |
# --- Config ---
|
20 |
# IMPORTANT: Both models are gated. You must be logged in to your Hugging Face account
|
21 |
# and have been granted access to use them.
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
24 |
|
25 |
model_qwen_id = "Qwen/Qwen2.5-VL-3B-Instruct"
|
26 |
model_gemma_id = "google/gemma-3-4b-it"
|
|
|
19 |
# --- Config ---
|
20 |
# IMPORTANT: Both models are gated. You must be logged in to your Hugging Face account
|
21 |
# and have been granted access to use them.
|
22 |
+
from huggingface_hub import login
|
23 |
+
hf_token = os.environ.get("HF_TOKEN")
|
24 |
+
login(token=hf_token)
|
25 |
+
|
26 |
+
|
27 |
|
28 |
model_qwen_id = "Qwen/Qwen2.5-VL-3B-Instruct"
|
29 |
model_gemma_id = "google/gemma-3-4b-it"
|