Update app.py
Browse files
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")
|