irotem98 commited on
Commit
8fe453b
1 Parent(s): 13a7b44

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -112,7 +112,7 @@ class MoondreamModel(nn.Module):
112
 
113
 
114
  @staticmethod
115
- def generate_caption(model, image, tokenizer, max_length=128):
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)