Rijgersberg commited on
Commit
5946569
1 Parent(s): 4354c7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,8 +21,8 @@ MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
21
 
22
  if torch.cuda.is_available():
23
  model_id = "Rijgersberg/GEITje-7B-chat"
24
- model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
25
- tokenizer = AutoTokenizer.from_pretrained(model_id)
26
 
27
 
28
  @spaces.GPU
 
21
 
22
  if torch.cuda.is_available():
23
  model_id = "Rijgersberg/GEITje-7B-chat"
24
+ model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto", token=HF_TOKEN)
25
+ tokenizer = AutoTokenizer.from_pretrained(model_id, token=HF_TOKEN)
26
 
27
 
28
  @spaces.GPU