noamrot commited on
Commit
3e9afa5
1 Parent(s): 226462f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,8 +5,8 @@ from transformers import BlipProcessor, BlipForConditionalGeneration
5
 
6
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
7
 
8
- processor = BlipProcessor.from_pretrained("noamrot/FuseCap")
9
- model = BlipForConditionalGeneration.from_pretrained("noamrot/FuseCap").to(device)
10
 
11
  def inference(raw_image):
12
  text = "a picture of "
 
5
 
6
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
7
 
8
+ processor = BlipProcessor.from_pretrained("noamrot/FuseCap_Image_Captioning")
9
+ model = BlipForConditionalGeneration.from_pretrained("noamrot/FuseCap_Image_Captioning").to(device)
10
 
11
  def inference(raw_image):
12
  text = "a picture of "