vilarin commited on
Commit
775d6e0
1 Parent(s): 0620ff6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -57,6 +57,7 @@ def stream_chat(message, history: list, temperature: float, max_new_tokens: int)
57
  image = None
58
  else:
59
  image = Image.open(history[0][0][0])
 
60
  if answer is None:
61
  conversation.extend([{"role": "user", "content": prompt},{"role": "assistant", "content": ""}])
62
  else:
 
57
  image = None
58
  else:
59
  image = Image.open(history[0][0][0])
60
+ for prompt, answer in history:
61
  if answer is None:
62
  conversation.extend([{"role": "user", "content": prompt},{"role": "assistant", "content": ""}])
63
  else: