Spaces:
Paused
Paused
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -60,6 +60,9 @@ def generate_prompt_with_history(text, history, tokenizer, max_length=2048):
|
|
| 60 |
flag = True
|
| 61 |
else:
|
| 62 |
break
|
|
|
|
|
|
|
|
|
|
| 63 |
if flag:
|
| 64 |
return prompt+history_text,tokenizer(prompt+history_text, return_tensors="pt")
|
| 65 |
else:
|
|
|
|
| 60 |
flag = True
|
| 61 |
else:
|
| 62 |
break
|
| 63 |
+
|
| 64 |
+
print(history)
|
| 65 |
+
|
| 66 |
if flag:
|
| 67 |
return prompt+history_text,tokenizer(prompt+history_text, return_tensors="pt")
|
| 68 |
else:
|