ybelkada commited on
Commit
240fddc
·
1 Parent(s): c9b0b37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -9,6 +9,8 @@ model_id = "Salesforce/blip-image-captioning-base"
9
  model = BlipForConditionalGeneration.from_pretrained(model_id)
10
  processor = BlipProcessor.from_pretrained(model_id)
11
 
 
 
12
  def launch(input):
13
  image = Image.open(requests.get(input, stream=True).raw).convert('RGB')
14
  inputs = processor(image, return_tensors="pt")
 
9
  model = BlipForConditionalGeneration.from_pretrained(model_id)
10
  processor = BlipProcessor.from_pretrained(model_id)
11
 
12
+ ##
13
+
14
  def launch(input):
15
  image = Image.open(requests.get(input, stream=True).raw).convert('RGB')
16
  inputs = processor(image, return_tensors="pt")