mateoluksenberg commited on
Commit
9c11fe7
·
verified ·
1 Parent(s): 48295b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -238,8 +238,10 @@ def simple_chat(message: dict, temperature: float = 0.8, max_length: int = 4096,
238
  if choice == "image":
239
  conversation.append({"role": "user", "image": contents, "content": message['text']})
240
  elif choice == "doc":
241
- format_msg = contents + "\n\n\n" + "{} files uploaded.\n".format(1) + message['text']
242
- conversation.append({"role": "user", "content": format_msg})
 
 
243
  else:
244
  conversation.append({"role": "user", "content": message['text']})
245
 
 
238
  if choice == "image":
239
  conversation.append({"role": "user", "image": contents, "content": message['text']})
240
  elif choice == "doc":
241
+ message['text'] = contents + "\n\n\n" + "{} files uploaded.\n".format(1) + message['text']
242
+ conversation.append({"role": "user", "content": message['text']})
243
+ # format_msg = contents + "\n\n\n" + "{} files uploaded.\n".format(1) + message['text']
244
+ # conversation.append({"role": "user", "content": format_msg})
245
  else:
246
  conversation.append({"role": "user", "content": message['text']})
247