Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ torch.hub.download_url_to_file('http://images.cocodataset.org/val2017/0000000397
|
|
7 |
git_processor = AutoProcessor.from_pretrained("microsoft/git-base-coco")
|
8 |
git_model = AutoModelForCausalLM.from_pretrained("microsoft/git-base-coco")
|
9 |
|
10 |
-
blip_processor = AutoProcessor.from_pretrained("
|
11 |
-
blip_model = BlipForConditionalGeneration.from_pretrained("
|
12 |
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
|
|
|
7 |
git_processor = AutoProcessor.from_pretrained("microsoft/git-base-coco")
|
8 |
git_model = AutoModelForCausalLM.from_pretrained("microsoft/git-base-coco")
|
9 |
|
10 |
+
blip_processor = AutoProcessor.from_pretrained("Salesforce/blip-image-captioning-base")
|
11 |
+
blip_model = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-base")
|
12 |
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
|