Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ from transformers import BlipForQuestionAnswering, BlipProcessor
|
|
8 |
|
9 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
10 |
|
11 |
-
processor = BlipProcessor.from_pretrained("Salesforce/blip-vqa-large")
|
12 |
-
model_vqa = BlipForQuestionAnswering.from_pretrained("Salesforce/blip-vqa-large").to(device)
|
13 |
def inference_chat(input_image,input_text):
|
14 |
inputs = processor(images=input_image, text=input_text,return_tensors="pt")
|
15 |
|
|
|
8 |
|
9 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
10 |
|
11 |
+
processor = BlipProcessor.from_pretrained("Salesforce/blip-vqa-capfilt-large")
|
12 |
+
model_vqa = BlipForQuestionAnswering.from_pretrained("Salesforce/blip-vqa-capfilt-large").to(device)
|
13 |
def inference_chat(input_image,input_text):
|
14 |
inputs = processor(images=input_image, text=input_text,return_tensors="pt")
|
15 |
|