Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -108,6 +108,8 @@ def process_image(model, tokenizer, transform, device, check_type, image, text):
|
|
108 |
current_bpe = [tokenizer.decode([i]) for i in input_ids]
|
109 |
# current_bpe[-1] = 'Input text'
|
110 |
current_bpe[-1] = text
|
|
|
|
|
111 |
return image, current_vis[0], current_bpe[0]
|
112 |
|
113 |
# 事件处理函数
|
|
|
108 |
current_bpe = [tokenizer.decode([i]) for i in input_ids]
|
109 |
# current_bpe[-1] = 'Input text'
|
110 |
current_bpe[-1] = text
|
111 |
+
print("current_vis",len(current_vis))
|
112 |
+
print("current_bpe",len(current_bpe))
|
113 |
return image, current_vis[0], current_bpe[0]
|
114 |
|
115 |
# 事件处理函数
|