Vision-CAIR commited on
Commit
0566ef0
1 Parent(s): bfcaa95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -466,7 +466,7 @@ def gradio_answer(chatbot, chat_state, img_list, temperature):
466
  def gradio_stream_answer(chatbot, chat_state, img_list, temperature):
467
  if len(img_list) > 0:
468
  if not isinstance(img_list[0], torch.Tensor):
469
- chat.encode_img(img_list)
470
  streamer = chat.stream_answer(conv=chat_state,
471
  img_list=img_list,
472
  temperature=temperature,
 
466
  def gradio_stream_answer(chatbot, chat_state, img_list, temperature):
467
  if len(img_list) > 0:
468
  if not isinstance(img_list[0], torch.Tensor):
469
+ img_list = chat.encode_img(img_list)
470
  streamer = chat.stream_answer(conv=chat_state,
471
  img_list=img_list,
472
  temperature=temperature,