Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -249,8 +249,8 @@ Provide a descriptive alt text in 1-2 sentences that is informative but not over
|
|
249 |
**input_ids,
|
250 |
max_new_tokens=1024,
|
251 |
disable_compile=True,
|
252 |
-
do_sample=
|
253 |
-
|
254 |
)
|
255 |
|
256 |
text = self.processor.batch_decode(
|
|
|
249 |
**input_ids,
|
250 |
max_new_tokens=1024,
|
251 |
disable_compile=True,
|
252 |
+
do_sample=False,
|
253 |
+
pad_token_id=self.processor.tokenizer.pad_token_id
|
254 |
)
|
255 |
|
256 |
text = self.processor.batch_decode(
|