Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -161,9 +161,9 @@ pipe = load_and_prepare_model()
|
|
161 |
checkpoint = "microsoft/Phi-3.5-mini-instruct"
|
162 |
captioner = pipeline(model="ydshieh/vit-gpt2-coco-en",device='cuda', task="image-to-text")
|
163 |
captioner_2 = pipeline(model="Salesforce/blip-image-captioning-base",device='cuda', task="image-to-text")
|
164 |
-
captioner_3 = pipeline(model="
|
165 |
-
model5 = Blip2ForConditionalGeneration.from_pretrained("
|
166 |
-
processor5 = Blip2Processor.from_pretrained("
|
167 |
txt_tokenizer = AutoTokenizer.from_pretrained(checkpoint, add_prefix_space=False)
|
168 |
txt_tokenizer.tokenizer_legacy=False
|
169 |
model = AutoModelForCausalLM.from_pretrained(checkpoint).to('cuda')
|
|
|
161 |
checkpoint = "microsoft/Phi-3.5-mini-instruct"
|
162 |
captioner = pipeline(model="ydshieh/vit-gpt2-coco-en",device='cuda', task="image-to-text")
|
163 |
captioner_2 = pipeline(model="Salesforce/blip-image-captioning-base",device='cuda', task="image-to-text")
|
164 |
+
captioner_3 = pipeline(model="ford442/blip-image-to-text-large-bf16",device='cuda', task="image-to-text")
|
165 |
+
model5 = Blip2ForConditionalGeneration.from_pretrained("ford442/blip2-image-to-text-bf16").to('cuda')
|
166 |
+
processor5 = Blip2Processor.from_pretrained("ford442/blip2-image-to-text-bf16")
|
167 |
txt_tokenizer = AutoTokenizer.from_pretrained(checkpoint, add_prefix_space=False)
|
168 |
txt_tokenizer.tokenizer_legacy=False
|
169 |
model = AutoModelForCausalLM.from_pretrained(checkpoint).to('cuda')
|