TongkunGuan commited on
Commit
cdb5235
·
verified ·
1 Parent(s): 434cc56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- current_bpe[-1] = text
 
 
 
 
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