Spaces:
Running
on
Zero
Running
on
Zero
1inkusFace
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -295,8 +295,8 @@ def captioning(img):
|
|
295 |
**inputsb,
|
296 |
do_sample=True,
|
297 |
num_beams=1,
|
298 |
-
max_length=
|
299 |
-
min_length=
|
300 |
top_p=0.9,
|
301 |
repetition_penalty=1.0,
|
302 |
length_penalty=2.0,
|
|
|
295 |
**inputsb,
|
296 |
do_sample=True,
|
297 |
num_beams=1,
|
298 |
+
max_length=42,
|
299 |
+
min_length=40,
|
300 |
top_p=0.9,
|
301 |
repetition_penalty=1.0,
|
302 |
length_penalty=2.0,
|