williamagyapong commited on
Commit
ec0b890
·
verified ·
1 Parent(s): 4589222

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -4
main.py CHANGED
@@ -118,14 +118,12 @@ def process_user_msg(message, mobile):
118
  intent = parsed_trans_data[0]['intent'].lower()
119
  if intent == 'read':
120
  response2 = str(read_datalake(mobile, message))
121
- # parsed_trans_data = ""
122
- msg = response2
123
- messenger.send_message(f"Raw Response: {response}, \n \n Parsed Response: {parsed_trans_data}, \n \n Final Response: {msg}", recipient_id=mobile)
124
  else:
125
  # Persist transaction data temporarily for Create, Update, or Delete operations
126
  persist_temporary_transaction(parsed_trans_data, mobile)
127
  # Give user the chance to confirm/cancel transaction before processing other intents
128
- messenger_reply_button(mobile, f"Raw Response: {response}, \n \n Parsed Response: {parsed_trans_data}")
129
 
130
  return True
131
 
 
118
  intent = parsed_trans_data[0]['intent'].lower()
119
  if intent == 'read':
120
  response2 = str(read_datalake(mobile, message))
121
+ messenger.send_message(f"*Raw Response*:\n {response}, \n \n *Parsed Response*:\n {parsed_trans_data}, \n \n *Final Response*:\n {response2}", recipient_id=mobile)
 
 
122
  else:
123
  # Persist transaction data temporarily for Create, Update, or Delete operations
124
  persist_temporary_transaction(parsed_trans_data, mobile)
125
  # Give user the chance to confirm/cancel transaction before processing other intents
126
+ messenger_reply_button(mobile, f"*Raw Response*:\n {response}, \n \n *Parsed Response*:\n {parsed_trans_data}")
127
 
128
  return True
129