Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
242 |
-
conversation.append({"role": "user", "content":
|
|
|
|
|
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 |
|