alexkueck commited on
Commit
8716861
·
1 Parent(s): deb4c1f

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +3 -1
utils.py CHANGED
@@ -137,7 +137,9 @@ def greedy_search(input_ids: torch.Tensor,
137
 
138
  ########################################
139
  #Predict
140
- def predict(text,
 
 
141
  history,
142
  top_p,
143
  temperature,
 
137
 
138
  ########################################
139
  #Predict
140
+ def predict(model,
141
+ tokenizer,
142
+ text,
143
  history,
144
  top_p,
145
  temperature,