nielsr HF staff commited on
Commit
51d259a
1 Parent(s): 37c781d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -18,6 +18,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
18
 
19
  git_model.to(device)
20
  blip_model.to(device)
 
21
 
22
  def generate_caption(processor, model, image):
23
  inputs = processor(images=image, return_tensors="pt").to(device)
 
18
 
19
  git_model.to(device)
20
  blip_model.to(device)
21
+ vitgpt_model.to(device)
22
 
23
  def generate_caption(processor, model, image):
24
  inputs = processor(images=image, return_tensors="pt").to(device)