Thedatababbler commited on
Commit
8b209fa
·
1 Parent(s): 0a95385
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -43,6 +43,7 @@ def mlm(image, text):
43
  predicted_tokens.append(tokenizer.convert_ids_to_tokens([idx])[0])
44
  # for i in range(1):
45
  # res[text][k].append(predicted_tokens)
 
46
  res[k] = predicted_tokens[0]
47
  color, shape, loc = res['color'], res['shape'], res['location']
48
  ans = f'{color} color, {shape} shape, cat at {loc}'
 
43
  predicted_tokens.append(tokenizer.convert_ids_to_tokens([idx])[0])
44
  # for i in range(1):
45
  # res[text][k].append(predicted_tokens)
46
+ print(predicted_tokens)
47
  res[k] = predicted_tokens[0]
48
  color, shape, loc = res['color'], res['shape'], res['location']
49
  ans = f'{color} color, {shape} shape, cat at {loc}'