Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -492,7 +492,7 @@ def process_image_analysis_stream(image_dict, user_prompt, max_new_tokens, top_k
|
|
| 492 |
|
| 493 |
if system_prompt:
|
| 494 |
formatted_messages = [
|
| 495 |
-
{"role": "system", "content": system_prompt}
|
| 496 |
] + messages
|
| 497 |
else:
|
| 498 |
formatted_messages = messages
|
|
|
|
| 492 |
|
| 493 |
if system_prompt:
|
| 494 |
formatted_messages = [
|
| 495 |
+
{"role": "system", "content": [{"type": "text", "text": system_prompt}]}
|
| 496 |
] + messages
|
| 497 |
else:
|
| 498 |
formatted_messages = messages
|