Update app.py
Browse files
app.py
CHANGED
@@ -132,7 +132,7 @@ def request_to_v2(message, cookie, user_id,attachment=None,context=[]):
|
|
132 |
attachments = [attachment_response]
|
133 |
print(f"attachment_response:{attachment_response}")
|
134 |
else:
|
135 |
-
bots =
|
136 |
print(bots)
|
137 |
context += [bots]
|
138 |
responses = [(u, b) for u, b in zip(context[::2], context[1::2])]
|
|
|
132 |
attachments = [attachment_response]
|
133 |
print(f"attachment_response:{attachment_response}")
|
134 |
else:
|
135 |
+
bots = "Error: Invalid file format. Please try again."
|
136 |
print(bots)
|
137 |
context += [bots]
|
138 |
responses = [(u, b) for u, b in zip(context[::2], context[1::2])]
|