Spaces:
Building
Building
Update app.py
Browse files
app.py
CHANGED
@@ -71,14 +71,15 @@ def respond(
|
|
71 |
vqa=""
|
72 |
if message["files"]:
|
73 |
try:
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
except:
|
80 |
vqa = ""
|
81 |
|
|
|
82 |
|
83 |
functions_metadata = [
|
84 |
{
|
|
|
71 |
vqa=""
|
72 |
if message["files"]:
|
73 |
try:
|
74 |
+
for image in message["files"]:
|
75 |
+
vqa += "[CAPTION of IMAGE] "
|
76 |
+
gr.Info("Analyzing image")
|
77 |
+
vqa += generate_caption_instructblip(image, message["text"])
|
78 |
+
print(vqa)
|
79 |
except:
|
80 |
vqa = ""
|
81 |
|
82 |
+
|
83 |
|
84 |
functions_metadata = [
|
85 |
{
|