Spaces:
Build error
Build error
Update caption.py
Browse files- caption.py +1 -1
caption.py
CHANGED
|
@@ -15,7 +15,7 @@ use_fp16 = device.type == "cuda"
|
|
| 15 |
if use_fp16:
|
| 16 |
model.half()
|
| 17 |
|
| 18 |
-
max_length =
|
| 19 |
num_beams = 4
|
| 20 |
gen_kwargs = {'max_length': max_length, 'num_beams': num_beams}
|
| 21 |
|
|
|
|
| 15 |
if use_fp16:
|
| 16 |
model.half()
|
| 17 |
|
| 18 |
+
max_length = 50
|
| 19 |
num_beams = 4
|
| 20 |
gen_kwargs = {'max_length': max_length, 'num_beams': num_beams}
|
| 21 |
|