Locutusque commited on
Commit
c77e10a
·
verified ·
1 Parent(s): ded7267

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -19,6 +19,8 @@ def generate(
19
  max_new_tokens=256,
20
  ):
21
  pipe = load_model(model_name)
 
 
22
 
23
  # Set tokenize correctly. Otherwise ticking the box breaks it.
24
  if model_name == "M4-ai/tau-1.8B":
 
19
  max_new_tokens=256,
20
  ):
21
  pipe = load_model(model_name)
22
+ tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True, token=os.environ["token"])
23
+ print(tokenizer)
24
 
25
  # Set tokenize correctly. Otherwise ticking the box breaks it.
26
  if model_name == "M4-ai/tau-1.8B":