Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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
|