Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,11 @@ import spaces
|
|
8 |
from transformers import AutoModelForCausalLM, AutoTokenizer, AutoConfig
|
9 |
from accelerate import init_empty_weights, load_checkpoint_and_dispatch
|
10 |
from huggingface_hub import snapshot_download
|
|
|
11 |
|
|
|
|
|
|
|
12 |
|
13 |
# --- Constants ---
|
14 |
COT_OPENING = "<think>"
|
|
|
8 |
from transformers import AutoModelForCausalLM, AutoTokenizer, AutoConfig
|
9 |
from accelerate import init_empty_weights, load_checkpoint_and_dispatch
|
10 |
from huggingface_hub import snapshot_download
|
11 |
+
from huggingface_hub import login
|
12 |
|
13 |
+
# --- Hugging Face Login ---
|
14 |
+
HF_READONLY_API_KEY = os.getenv("HF_READONLY_API_KEY")
|
15 |
+
login(token=HF_READONLY_API_KEY)
|
16 |
|
17 |
# --- Constants ---
|
18 |
COT_OPENING = "<think>"
|