Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ model.to(device)
|
|
11 |
|
12 |
max_length = 16
|
13 |
num_beams = 4
|
14 |
-
gen_kwargs =
|
15 |
|
16 |
def predict_caption(image_paths):
|
17 |
images = []
|
|
|
11 |
|
12 |
max_length = 16
|
13 |
num_beams = 4
|
14 |
+
gen_kwargs = {"max_length": max_length, "num_beams": num_beams}
|
15 |
|
16 |
def predict_caption(image_paths):
|
17 |
images = []
|