vilarin commited on
Commit
7607a25
Β·
verified Β·
1 Parent(s): 332c0b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ def stream_chat(message, history: list, temperature: float, max_new_tokens: int)
61
  raise gr.Error("Please upload an image first.")
62
  image = None
63
  elif len(history):
64
- image = Image.open(history[0][0][0])
65
  for prompt, answer in history:
66
  conversation[0]['content'] = f"<|image_1|>\n{prompt}"
67
  conversation.extend([{"role": "assistant", "content": answer}])
 
61
  raise gr.Error("Please upload an image first.")
62
  image = None
63
  elif len(history):
64
+ image = Image.open(history[0][0])
65
  for prompt, answer in history:
66
  conversation[0]['content'] = f"<|image_1|>\n{prompt}"
67
  conversation.extend([{"role": "assistant", "content": answer}])