Ctaake commited on
Commit
21f0218
·
verified ·
1 Parent(s): 07d795b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 == "NousResearch/Nous-He-8x7B-DPO":
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', '')