Hunzla commited on
Commit
18d8e23
·
1 Parent(s): 871f702

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -25,11 +25,14 @@ model = AutoModelForCausalLM.from_pretrained(
25
  return_dict=True,
26
  torch_dtype=torch.float16,
27
  revision="main", # Or the desired revision
 
28
  )
29
 
30
  tokenizer = AutoTokenizer.from_pretrained(
31
  model_name,
32
- revision="main", # Or the desired revision
 
 
33
  )
34
 
35
  print("loaded model")
 
25
  return_dict=True,
26
  torch_dtype=torch.float16,
27
  revision="main", # Or the desired revision
28
+ token=api_token
29
  )
30
 
31
  tokenizer = AutoTokenizer.from_pretrained(
32
  model_name,
33
+ revision="main",
34
+ token=api_token
35
+ # Or the desired revision
36
  )
37
 
38
  print("loaded model")