FarhanAK128 commited on
Commit
f76e395
·
verified ·
1 Parent(s): 675b9a7

Update model_class.py

Browse files
Files changed (1) hide show
  1. model_class.py +2 -1
model_class.py CHANGED
@@ -181,7 +181,8 @@ class CustomGPT(
181
  f"Write a response that appropriately completes the request."
182
  f"\n\n### Instruction:\n{entry['instruction']}"
183
  )
184
- input_text = f"\n\n### Input:\n{entry['input']}" if entry["input"] else ""
 
185
  return instruction_text + input_text
186
 
187
  def text_to_token_ids(self, text, tokenizer):
 
181
  f"Write a response that appropriately completes the request."
182
  f"\n\n### Instruction:\n{entry['instruction']}"
183
  )
184
+ # input_text = f"\n\n### Input:\n{entry['input']}" if entry["input"] else ""
185
+ input_text = f"\n\n### Input:\n{entry.get('input', '')}"
186
  return instruction_text + input_text
187
 
188
  def text_to_token_ids(self, text, tokenizer):