dedupe suggested questions

This commit is contained in:
vik
2023-12-29 17:57:07 -08:00
parent 595f19ea4b
commit da0d256a7e
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -90,6 +90,8 @@ class TextModel:
suggestions = [
"What " + re.sub("Assistant$", "", s).strip() for s in suggestions
]
suggestions = list(set(suggestions))
return suggestions
def answer_question(self, image_embeds, question, **kwargs):
-2
View File
@@ -43,5 +43,3 @@ else:
print(buffer, end="", flush=True)
buffer = ""
print(re.sub("Human$", "", buffer))
print()