Shriharshan
commited on
Commit
•
d837338
1
Parent(s):
66adf6a
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from transformers import VisionEncoderDecoderModel, ViTFeatureExtractor, PreTrainedTokenizerFast
|
2 |
|
3 |
-
model = VisionEncoderDecoderModel.from_pretrained("
|
4 |
vit_feature_extractor = ViTFeatureExtractor.from_pretrained("google/vit-base-patch16-224-in21k")
|
5 |
tokenizer = PreTrainedTokenizerFast.from_pretrained("distilgpt2")
|
6 |
|
|
|
1 |
from transformers import VisionEncoderDecoderModel, ViTFeatureExtractor, PreTrainedTokenizerFast
|
2 |
|
3 |
+
model = VisionEncoderDecoderModel.from_pretrained("Salesforce/blip-image-captioning-large")
|
4 |
vit_feature_extractor = ViTFeatureExtractor.from_pretrained("google/vit-base-patch16-224-in21k")
|
5 |
tokenizer = PreTrainedTokenizerFast.from_pretrained("distilgpt2")
|
6 |
|