Spaces:
Sleeping
Sleeping
increaded more tokens
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def caption_image(image, custom_prompt=None):
|
|
| 75 |
inputs=input_ids,
|
| 76 |
attention_mask=attention_mask,
|
| 77 |
images=px,
|
| 78 |
-
max_new_tokens=
|
| 79 |
do_sample=False, # temperature is ignored when sampling is off
|
| 80 |
)
|
| 81 |
|
|
|
|
| 75 |
inputs=input_ids,
|
| 76 |
attention_mask=attention_mask,
|
| 77 |
images=px,
|
| 78 |
+
max_new_tokens=400,
|
| 79 |
do_sample=False, # temperature is ignored when sampling is off
|
| 80 |
)
|
| 81 |
|