Spaces:
Sleeping
Sleeping
williamagyapong
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -128,6 +128,9 @@ def hook():
|
|
128 |
response = str(generateResponse(message))
|
129 |
# Parse AI generated response into a structured format
|
130 |
parsed_trans_data = parse_multiple_transactions(response)
|
|
|
|
|
|
|
131 |
print("Response:", response)
|
132 |
logging.info(f"\nAnswer: {response}\n")
|
133 |
# Handle cases where response is not a valid image path
|
|
|
128 |
response = str(generateResponse(message))
|
129 |
# Parse AI generated response into a structured format
|
130 |
parsed_trans_data = parse_multiple_transactions(response)
|
131 |
+
messenger.send_message(message=f"{parsed_trans_data}", recipient_id=mobile)
|
132 |
+
return None
|
133 |
+
|
134 |
print("Response:", response)
|
135 |
logging.info(f"\nAnswer: {response}\n")
|
136 |
# Handle cases where response is not a valid image path
|