akhaliq HF staff commited on
Commit
3d1b39b
1 Parent(s): 97e7f5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def chat_with_image(message, image, history):
45
  if encoded_image:
46
  messages.append({
47
  "role": "user",
48
- "content": f"[IMAGE]{encoded_image}[/IMAGE]\n{message or 'What's in this image?'}"
49
  })
50
  else:
51
  messages.append({"role": "user", "content": "I tried to upload an image, but there was an error."})
 
45
  if encoded_image:
46
  messages.append({
47
  "role": "user",
48
+ "content": f"[IMAGE]{encoded_image}[/IMAGE]\n{message or 'What\'s in this image?'}"
49
  })
50
  else:
51
  messages.append({"role": "user", "content": "I tried to upload an image, but there was an error."})