montehoover commited on
Commit
13d2610
·
verified ·
1 Parent(s): 9078015

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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>"