Spaces:
Sleeping
Sleeping
Commit
·
ff81cf2
1
Parent(s):
c598e5f
fix memory
Browse files
chatbot/__pycache__/core.cpython-310.pyc
CHANGED
Binary files a/chatbot/__pycache__/core.cpython-310.pyc and b/chatbot/__pycache__/core.cpython-310.pyc differ
|
|
chatbot/core.py
CHANGED
@@ -111,10 +111,7 @@ def get_chat_response(user_input: str) -> str:
|
|
111 |
restriction = classify_query(user_input.strip())
|
112 |
if faq_response:
|
113 |
print("FAQ")
|
114 |
-
if len(memory.restrict) < 7:
|
115 |
-
memory.restrict = restriction
|
116 |
memory.add(user_input, faq_response)
|
117 |
-
print(faq_response)
|
118 |
return faq_response
|
119 |
|
120 |
|
|
|
111 |
restriction = classify_query(user_input.strip())
|
112 |
if faq_response:
|
113 |
print("FAQ")
|
|
|
|
|
114 |
memory.add(user_input, faq_response)
|
|
|
115 |
return faq_response
|
116 |
|
117 |
|