Spaces:
Paused
Paused
Update utils.py
Browse files
utils.py
CHANGED
@@ -137,7 +137,9 @@ def greedy_search(input_ids: torch.Tensor,
|
|
137 |
|
138 |
########################################
|
139 |
#Predict
|
140 |
-
def predict(
|
|
|
|
|
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,
|