Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ model = Idefics3ForConditionalGeneration.from_pretrained("HuggingFaceTB/SmolVLM_
|
|
16 |
#_attn_implementation="flash_attention_2"
|
17 |
).to("cuda")
|
18 |
|
19 |
-
BAD_WORDS_IDS = processor.tokenizer(["<image>", "<fake_token_around_image>"], add_special_tokens=False).input_ids
|
20 |
EOS_WORDS_IDS = [processor.tokenizer.eos_token_id]
|
21 |
|
22 |
@spaces.GPU
|
|
|
16 |
#_attn_implementation="flash_attention_2"
|
17 |
).to("cuda")
|
18 |
|
19 |
+
BAD_WORDS_IDS = processor.tokenizer(["<image>", "<fake_token_around_image>", "<row_", "apiro", "\u2500lrow_", "row_1"], add_special_tokens=False).input_ids
|
20 |
EOS_WORDS_IDS = [processor.tokenizer.eos_token_id]
|
21 |
|
22 |
@spaces.GPU
|