joshuaberkowitzus commited on
Commit
acf8a12
·
verified ·
1 Parent(s): f4b71d3
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -7,7 +7,9 @@ import torch # Or tensorflow/flax depending on backend
7
  from transformers import AutoModelForCausalLM, AutoTokenizer
8
 
9
  # Set Hugging Face token if needed (for gated models, though Llama 3.1 might not require it after initial access grant)
 
10
  from huggingface_hub import login
 
11
  hf_token = os.getenv("HF_TOKEN")
12
  login(token=hf_token)
13
 
 
7
  from transformers import AutoModelForCausalLM, AutoTokenizer
8
 
9
  # Set Hugging Face token if needed (for gated models, though Llama 3.1 might not require it after initial access grant)
10
+ import os
11
  from huggingface_hub import login
12
+
13
  hf_token = os.getenv("HF_TOKEN")
14
  login(token=hf_token)
15