LYL1015 commited on
Commit
e4853a9
·
verified ·
1 Parent(s): 2cdf47f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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