msg update
Browse files- controller.py +6 -0
controller.py
CHANGED
@@ -87,11 +87,17 @@ class Controller:
|
|
87 |
- str: The response from the conversation chain.
|
88 |
"""
|
89 |
agent_chat_bot = ConversationChainSingleton().get_conversation_chain()
|
|
|
|
|
|
|
90 |
if agent_response is not None:
|
91 |
text = agent_chat_bot.predict(input=user_message + agent_response)
|
92 |
else:
|
93 |
text = agent_chat_bot.predict(input=user_message)
|
94 |
|
|
|
|
|
|
|
95 |
result = cut_text_after_keyword(text, "Human:")
|
96 |
print(result)
|
97 |
return result
|
|
|
87 |
- str: The response from the conversation chain.
|
88 |
"""
|
89 |
agent_chat_bot = ConversationChainSingleton().get_conversation_chain()
|
90 |
+
print("------------ msg -----------------------")
|
91 |
+
print(user_message + " ---- " +agent_response)
|
92 |
+
print("------------ /msg -----------------------")
|
93 |
if agent_response is not None:
|
94 |
text = agent_chat_bot.predict(input=user_message + agent_response)
|
95 |
else:
|
96 |
text = agent_chat_bot.predict(input=user_message)
|
97 |
|
98 |
+
print("------------ result -----------------------")
|
99 |
+
print(result)
|
100 |
+
print("------------ /result -----------------------")
|
101 |
result = cut_text_after_keyword(text, "Human:")
|
102 |
print(result)
|
103 |
return result
|