gitesh-grover commited on
Commit
623ca17
·
verified ·
1 Parent(s): 9a77dd1

Upload inference.py

Browse files

Updated the file to return the input tokens as well

Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -33,5 +33,5 @@ def predict(x, model, max_output_len = 30):
33
  # if xcol == config.end_token:
34
  # break
35
 
36
- return x[:, input_len:] # B, max_output_len
37
 
 
33
  # if xcol == config.end_token:
34
  # break
35
 
36
+ return x[:, :] # B, max_output_len
37