TongkunGuan commited on
Commit
f30af6e
·
verified ·
1 Parent(s): 743d37f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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
  # 事件处理函数