Spaces:
Runtime error
Runtime error
HuanjinYao
commited on
Commit
•
1d64fb8
1
Parent(s):
9986a64
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def bot_streaming(message, history):
|
|
69 |
|
70 |
conv = conv_templates['llama_3'].copy()
|
71 |
if len(history) == 0:
|
72 |
-
|
73 |
else:
|
74 |
for idx, (user, assistant) in enumerate(history[1:]):
|
75 |
# conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
|
|
69 |
|
70 |
conv = conv_templates['llama_3'].copy()
|
71 |
if len(history) == 0:
|
72 |
+
message['text'] = DEFAULT_IMAGE_TOKEN + '\n' + message['text']
|
73 |
else:
|
74 |
for idx, (user, assistant) in enumerate(history[1:]):
|
75 |
# conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|