Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|