xiaolv commited on
Commit
c3fcf5e
1 Parent(s): 4586d7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = "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])]
 
132
  attachments = [attachment_response]
133
  print(f"attachment_response:{attachment_response}")
134
  else:
135
+ bots = str(attachment_response.json) + "\nError: 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])]