VanguardAI commited on
Commit
fe1173a
·
verified ·
1 Parent(s): e4e9681

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -164,7 +164,7 @@ def handle_input(user_prompt, image=None, audio=None, websearch=False, document=
164
  if image:
165
  image = Image.open(image).convert('RGB')
166
  messages = [{"role": "user", "content": [image, user_prompt]}]
167
- response = vqa_model.chat(image=None, msgs=messages, tokenizer=tokenizer,context=None, temperature=0.5)
168
  return response, None
169
  else:
170
  return "Please upload an image.", None
 
164
  if image:
165
  image = Image.open(image).convert('RGB')
166
  messages = [{"role": "user", "content": [image, user_prompt]}]
167
+ response = vqa_model.chat(image=image, msgs=messages, tokenizer=tokenizer,context=None, temperature=0.5)
168
  return response, None
169
  else:
170
  return "Please upload an image.", None