xxx1 commited on
Commit
9ac0ee2
1 Parent(s): cf61b79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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