williamagyapong
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -92,8 +92,8 @@ def respond(query_str: str):
|
|
92 |
|
93 |
def process_user_msg(message, mobile):
|
94 |
response = str(generateResponse(message))
|
95 |
-
return None, None, response
|
96 |
parsed_trans_data = parse_multiple_transactions(response)
|
|
|
97 |
logging.info(f"\nAnswer: {response}\n")
|
98 |
|
99 |
intent = parsed_trans_data[0]['intent'].lower()
|
|
|
92 |
|
93 |
def process_user_msg(message, mobile):
|
94 |
response = str(generateResponse(message))
|
|
|
95 |
parsed_trans_data = parse_multiple_transactions(response)
|
96 |
+
return None, parsed_trans_data, response
|
97 |
logging.info(f"\nAnswer: {response}\n")
|
98 |
|
99 |
intent = parsed_trans_data[0]['intent'].lower()
|