Spaces:
Running
on
Zero
Running
on
Zero
VanguardAI
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -180,7 +180,7 @@ def handle_input(user_prompt, image=None, audio=None, websearch=False, document=
|
|
180 |
print("3")
|
181 |
messages = [{"role": "user", "content": user_prompt}]
|
182 |
print("4")
|
183 |
-
response = vqa_model.chat(image=image, msgs=messages, tokenizer=tokenizer, context=None, temperature=0.5)
|
184 |
print("5")
|
185 |
return response, None
|
186 |
else:
|
|
|
180 |
print("3")
|
181 |
messages = [{"role": "user", "content": user_prompt}]
|
182 |
print("4")
|
183 |
+
response,ctxt = vqa_model.chat(image=image, msgs=messages, tokenizer=tokenizer, context=None, temperature=0.5)
|
184 |
print("5")
|
185 |
return response, None
|
186 |
else:
|