Spaces:
Sleeping
Sleeping
williamagyapong
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -112,6 +112,8 @@ def process_user_msg(message, mobile):
|
|
112 |
response = str(generateResponse(message))
|
113 |
parsed_trans_data = parse_multiple_transactions(response)
|
114 |
# return None, parsed_trans_data, response
|
|
|
|
|
115 |
logging.info(f"\nAnswer: {response}\n")
|
116 |
intent = parsed_trans_data[0]['intent'].lower()
|
117 |
if intent == 'read':
|
|
|
112 |
response = str(generateResponse(message))
|
113 |
parsed_trans_data = parse_multiple_transactions(response)
|
114 |
# return None, parsed_trans_data, response
|
115 |
+
messenger.send_message(f"{response} \n\n {parsed_trans_data}")
|
116 |
+
|
117 |
logging.info(f"\nAnswer: {response}\n")
|
118 |
intent = parsed_trans_data[0]['intent'].lower()
|
119 |
if intent == 'read':
|