Spaces:
Running
Running
Commit
•
027864c
1
Parent(s):
25fbe63
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ if inpt and file is not None:
|
|
34 |
image_bytes = io.BytesIO()
|
35 |
image.save(image_bytes, format=image.format)
|
36 |
image_bytes = image_bytes.getvalue()
|
37 |
-
imgp =
|
38 |
pp = "Generate answer on this question: " + inpt + ". Use this image description to give answer: " + imgp[0]['generated_text']
|
39 |
output = generate_answer(pp)
|
40 |
aimsg = msgs.chat_message("Assistant")
|
|
|
34 |
image_bytes = io.BytesIO()
|
35 |
image.save(image_bytes, format=image.format)
|
36 |
image_bytes = image_bytes.getvalue()
|
37 |
+
imgp = blip_query(image_bytes)
|
38 |
pp = "Generate answer on this question: " + inpt + ". Use this image description to give answer: " + imgp[0]['generated_text']
|
39 |
output = generate_answer(pp)
|
40 |
aimsg = msgs.chat_message("Assistant")
|