Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,11 @@ def process_image(model, tokenizer, transform, device, check_type, image, text):
|
|
107 |
|
108 |
current_bpe = [tokenizer.decode([i]) for i in input_ids]
|
109 |
# current_bpe[-1] = 'Input text'
|
110 |
-
|
|
|
|
|
|
|
|
|
111 |
|
112 |
return image, current_vis, current_bpe
|
113 |
|
|
|
107 |
|
108 |
current_bpe = [tokenizer.decode([i]) for i in input_ids]
|
109 |
# current_bpe[-1] = 'Input text'
|
110 |
+
print("len1 ",len(current_vis))
|
111 |
+
print("len2 ",len(current_bpe))
|
112 |
+
print("current_bpe!!!!!!!!!!!!!!!!!!!",current_bpe)
|
113 |
+
|
114 |
+
current_bpe.append(text)
|
115 |
|
116 |
return image, current_vis, current_bpe
|
117 |
|