Spaces:
Paused
Paused
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -139,6 +139,7 @@ def greedy_search(input_ids: torch.Tensor,
|
|
| 139 |
#Predict
|
| 140 |
def predict(model,
|
| 141 |
tokenizer,
|
|
|
|
| 142 |
text,
|
| 143 |
history,
|
| 144 |
top_p,
|
|
|
|
| 139 |
#Predict
|
| 140 |
def predict(model,
|
| 141 |
tokenizer,
|
| 142 |
+
device,
|
| 143 |
text,
|
| 144 |
history,
|
| 145 |
top_p,
|