Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,8 @@ from transformers import BlipProcessor, BlipForQuestionAnswering
|
|
5 |
|
6 |
# Initialize the model and processor
|
7 |
processor = BlipProcessor.from_pretrained("Salesforce/blip-vqa-base")
|
8 |
-
model = BlipForQuestionAnswering.from_pretrained("ManishThota/InstructBlip-VQA")
|
|
|
9 |
|
10 |
def predict_answer(image, question):
|
11 |
# Convert PIL image to RGB if not already
|
|
|
5 |
|
6 |
# Initialize the model and processor
|
7 |
processor = BlipProcessor.from_pretrained("Salesforce/blip-vqa-base")
|
8 |
+
# model = BlipForQuestionAnswering.from_pretrained("ManishThota/InstructBlip-VQA")
|
9 |
+
model = BlipForQuestionAnswering.from_pretrained("Salesforce/blip-vqa-base")
|
10 |
|
11 |
def predict_answer(image, question):
|
12 |
# Convert PIL image to RGB if not already
|