gokaygokay commited on
Commit
d114049
1 Parent(s): db345b8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -35,7 +35,8 @@ def run_example(task_prompt, text_input, image):
35
  input_ids=inputs["input_ids"],
36
  pixel_values=inputs["pixel_values"],
37
  max_new_tokens=1024,
38
- num_beams=3
 
39
  )
40
  generated_text = processor.batch_decode(generated_ids, skip_special_tokens=False)[0]
41
  parsed_answer = processor.post_process_generation(generated_text, task=task_prompt, image_size=(image.width, image.height))
 
35
  input_ids=inputs["input_ids"],
36
  pixel_values=inputs["pixel_values"],
37
  max_new_tokens=1024,
38
+ num_beams=3,
39
+ repetition_penalty=1.10,
40
  )
41
  generated_text = processor.batch_decode(generated_ids, skip_special_tokens=False)[0]
42
  parsed_answer = processor.post_process_generation(generated_text, task=task_prompt, image_size=(image.width, image.height))