Update main.py
Browse files
main.py
CHANGED
@@ -164,7 +164,7 @@ def hook():
|
|
164 |
messenger.send_message(message=f"{response}", recipient_id=mobile)
|
165 |
else:
|
166 |
firestore_msg1, parsed_trans_data1, response1 = process_user_msg(message, mobile)
|
167 |
-
if isinstance(
|
168 |
image_path = os.path.join(firestore_msg1)
|
169 |
print("My image path:", image_path)
|
170 |
with open(image_path, "rb") as file:
|
|
|
164 |
messenger.send_message(message=f"{response}", recipient_id=mobile)
|
165 |
else:
|
166 |
firestore_msg1, parsed_trans_data1, response1 = process_user_msg(message, mobile)
|
167 |
+
if isinstance(firestore_msg1, str) and os.path.isfile(os.path.join(firestore_msg1)):
|
168 |
image_path = os.path.join(firestore_msg1)
|
169 |
print("My image path:", image_path)
|
170 |
with open(image_path, "rb") as file:
|