Royrotem100 commited on
Commit
c940cf6
·
1 Parent(s): f2a39ce

Add DictaLM 2.0 instruct model

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -69,7 +69,7 @@ def predict():
69
  # Decode the output
70
  prediction = tokenizer.decode(outputs[0], skip_special_tokens=True).replace(formatted_text, '').strip()
71
 
72
- # Remove the user input part from the response
73
  if "[/INST]" in prediction:
74
  prediction = prediction.split("[/INST]", 1)[-1].strip()
75
 
 
69
  # Decode the output
70
  prediction = tokenizer.decode(outputs[0], skip_special_tokens=True).replace(formatted_text, '').strip()
71
 
72
+ # Remove user input part from the response
73
  if "[/INST]" in prediction:
74
  prediction = prediction.split("[/INST]", 1)[-1].strip()
75