Update model.py
Browse files
model.py
CHANGED
@@ -112,7 +112,7 @@ class MoondreamModel(nn.Module):
|
|
112 |
|
113 |
|
114 |
@staticmethod
|
115 |
-
def generate_caption(model, image, tokenizer, max_length=
|
116 |
model.eval()
|
117 |
with torch.no_grad():
|
118 |
image = image.unsqueeze(0).to(DEVICE)
|
|
|
112 |
|
113 |
|
114 |
@staticmethod
|
115 |
+
def generate_caption(model, image, tokenizer, max_length=192):
|
116 |
model.eval()
|
117 |
with torch.no_grad():
|
118 |
image = image.unsqueeze(0).to(DEVICE)
|