Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ mistral_models=["mistralai/Mixtral-8x7B-Instruct-v0.1"]
|
|
| 27 |
# Inference client with the model (And HF-token if needed)
|
| 28 |
client = InferenceClient(checkpoint)
|
| 29 |
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
| 30 |
-
if checkpoint
|
| 31 |
# Tokenizer chat template correction(Only works for mistral models)
|
| 32 |
chat_template = open("mistral-instruct.jinja").read()
|
| 33 |
chat_template = chat_template.replace(' ', '').replace('\n', '')
|
|
|
|
| 27 |
# Inference client with the model (And HF-token if needed)
|
| 28 |
client = InferenceClient(checkpoint)
|
| 29 |
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
| 30 |
+
if checkpoint in mistral_models:
|
| 31 |
# Tokenizer chat template correction(Only works for mistral models)
|
| 32 |
chat_template = open("mistral-instruct.jinja").read()
|
| 33 |
chat_template = chat_template.replace(' ', '').replace('\n', '')
|