vilarin commited on
Commit
de27ed6
1 Parent(s): 3193581

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ def stream_chat(message, history: list, temperature: float, max_new_tokens: int)
56
 
57
  if message["files"]:
58
  image = Image.open(message["files"][-1])
59
- conversation.append({"role": "user"}, "content": f"<|image_1|>\n{message['text']}")
60
  else:
61
  if len(history) == 0:
62
  gr.Error("Please upload an image first.")
 
56
 
57
  if message["files"]:
58
  image = Image.open(message["files"][-1])
59
+ conversation.append({"role": "user", "content": f"<|image_1|>\n{message['text']}"})
60
  else:
61
  if len(history) == 0:
62
  gr.Error("Please upload an image first.")