vilarin commited on
Commit
b769a0c
1 Parent(s): f0f79eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def stream_chat(message, history: list, temperature: float, max_length: int):
52
  image = Image.open(history[0][0][0])
53
  for prompt, answer in history:
54
  if answer is None:
55
- conversation.extend([{"role": "user", "content": prompt},{"role": "assistant", "content": ""}])
56
  else:
57
  conversation.extend([{"role": "user", "content": prompt}, {"role": "assistant", "content": answer}])
58
  conversation.append({"role": "user", "image": image, "content": message['text']})
 
52
  image = Image.open(history[0][0][0])
53
  for prompt, answer in history:
54
  if answer is None:
55
+ conversation.extend([{"role": "user", "content": ""},{"role": "assistant", "content": ""}])
56
  else:
57
  conversation.extend([{"role": "user", "content": prompt}, {"role": "assistant", "content": answer}])
58
  conversation.append({"role": "user", "image": image, "content": message['text']})