nielsr HF staff commited on
Commit
075ee8a
·
1 Parent(s): 27af252

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("Salesfoce/blip-image-captioning-base")
11
- blip_model = BlipForConditionalGeneration.from_pretrained("Salesfoce/blip-image-captioning-base")
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