m7mdal7aj commited on
Commit
9d0134c
·
1 Parent(s): dc81fd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from PIL import Image
8
  from transformers import Blip2Processor, Blip2ForConditionalGeneration
9
 
10
 
11
- def load_caption_model(blip2=false, instructblip=True):
12
 
13
  if blip2:
14
  processor = Blip2Processor.from_pretrained("Salesforce/blip2-opt-2.7b")
 
8
  from transformers import Blip2Processor, Blip2ForConditionalGeneration
9
 
10
 
11
+ def load_caption_model(blip2=False, instructblip=True):
12
 
13
  if blip2:
14
  processor = Blip2Processor.from_pretrained("Salesforce/blip2-opt-2.7b")