jadechoghari commited on
Commit
1426edd
1 Parent(s): bcad80e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -3
README.md CHANGED
@@ -27,7 +27,7 @@ image_path = "appstore_reminders.png"
27
  prompt = "Describe the image in details"
28
 
29
  # Call the function without a box
30
- processed_image, inference_text = inference_and_run(image_path, prompt, conv_mode="ferret_gemma_instruct", model_path="jadechoghari/Ferret-UI-Gemma2b")
31
 
32
  # Output processed text
33
  print("Inference Text:", inference_text)
@@ -39,15 +39,16 @@ image_path = "appstore_reminders.png"
39
  prompt = "What's inside the selected region?"
40
  box = [189, 906, 404, 970]
41
 
42
- processed_image, inference_text = inference_and_run(
43
  image_path=image_path,
44
  prompt=prompt,
45
  conv_mode="ferret_gemma_instruct",
46
  model_path="jadechoghari/Ferret-UI-Gemma2b",
47
  box=box
48
  )
 
 
49
 
50
- # otput the inference text and optionally save the processed image
51
  print("Inference Text:", inference_text)
52
  ```
53
 
 
27
  prompt = "Describe the image in details"
28
 
29
  # Call the function without a box
30
+ inference_text = inference_and_run(image_path, prompt, conv_mode="ferret_gemma_instruct", model_path="jadechoghari/Ferret-UI-Gemma2b")
31
 
32
  # Output processed text
33
  print("Inference Text:", inference_text)
 
39
  prompt = "What's inside the selected region?"
40
  box = [189, 906, 404, 970]
41
 
42
+ inference_text = inference_and_run(
43
  image_path=image_path,
44
  prompt=prompt,
45
  conv_mode="ferret_gemma_instruct",
46
  model_path="jadechoghari/Ferret-UI-Gemma2b",
47
  box=box
48
  )
49
+ # you could also pass process_image=True
50
+ # to output: processed_image, inference_text = inference_and_run(...., process_image=True)
51
 
 
52
  print("Inference Text:", inference_text)
53
  ```
54