FarhanAK128 commited on
Commit
8a0afd9
·
verified ·
1 Parent(s): a295347

Update model_class.py

Browse files
Files changed (1) hide show
  1. model_class.py +1 -1
model_class.py CHANGED
@@ -228,7 +228,7 @@ class CustomGPT(
228
 
229
  return idx
230
 
231
- def generate_response(self, input_entry, temperature=0.0, topk=None):
232
  current_device = next(self.parameters()).device
233
  self.eval()
234
  input_text = self.format_input(input_entry)
 
228
 
229
  return idx
230
 
231
+ def generate_response(self, input_entry, tokenizer, temperature=0.0, topk=None):
232
  current_device = next(self.parameters()).device
233
  self.eval()
234
  input_text = self.format_input(input_entry)