vilarin commited on
Commit
f0f79eb
1 Parent(s): 3f5fb82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def stream_chat(message, history: list, temperature: float, max_length: int):
49
  raise gr.Error("Please upload an image first.")
50
  image = None
51
  else:
52
- image = Image.open(history[0][1])
53
  for prompt, answer in history:
54
  if answer is None:
55
  conversation.extend([{"role": "user", "content": prompt},{"role": "assistant", "content": ""}])
 
49
  raise gr.Error("Please upload an image first.")
50
  image = None
51
  else:
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": ""}])