Spaces:
Running
on
Zero
Running
on
Zero
Locutusque
commited on
Update app.py
Browse files
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":
|