text_plain_output_1.png
from blip.models import blip

import importlib

import inspect

blip_path = inspect.getfile(blip)
fin = open(blip_path, 'rt')
data = fin.read()
data = data.replace("BertTokenizer.from_pretrained('bert-base-uncased')", "BertTokenizer.from_pretrained('/kaggle/input/clip-interrogator-models-x/bert-base-uncased')")
fin.close()
fin = open(blip_path, 'wt')
fin.write(data)
fin.close()
importlib.reload(blip)