BeveledCube commited on
Commit
74272ac
·
verified ·
1 Parent(s): 6c9982e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -38,7 +38,7 @@ def read_root(data: req):
38
  input_text = data.prompt
39
 
40
  # Tokenize the input text
41
- input_ids = tokenizer.encode(history_string, input_text, return_tensors="pt")
42
 
43
  # Generate output using the model
44
  output_ids = model.generate(input_ids, num_beams=5, no_repeat_ngram_size=2)
 
38
  input_text = data.prompt
39
 
40
  # Tokenize the input text
41
+ input_ids = tokenizer.encode_plus(history_string, input_text, return_tensors="pt")
42
 
43
  # Generate output using the model
44
  output_ids = model.generate(input_ids, num_beams=5, no_repeat_ngram_size=2)