Image-Text-to-Text
Transformers
Safetensors
English
llava
conversational
patricebechard commited on
Commit
0d1f9c9
·
verified ·
1 Parent(s): e6f9254

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -72,11 +72,11 @@ Users should:
72
  ## How to Get Started with the Model
73
 
74
  ```python
75
- from transformers import AutoProcessor, AutoModelForVision2Seq
76
  from PIL import Image
77
 
78
  processor = AutoProcessor.from_pretrained("ServiceNow/Pixtral-12B-2409-StarFlow")
79
- model = AutoModelForVision2Seq.from_pretrained("ServiceNow/Pixtral-12B-2409-StarFlow")
80
 
81
  image = Image.open("workflow_sketch.png")
82
  inputs = processor(images=image, text="Generate workflow JSON", return_tensors="pt")
 
72
  ## How to Get Started with the Model
73
 
74
  ```python
75
+ from transformers import AutoProcessor, LlavaForConditionalGeneration
76
  from PIL import Image
77
 
78
  processor = AutoProcessor.from_pretrained("ServiceNow/Pixtral-12B-2409-StarFlow")
79
+ model = LlavaForConditionalGeneration.from_pretrained("ServiceNow/Pixtral-12B-2409-StarFlow")
80
 
81
  image = Image.open("workflow_sketch.png")
82
  inputs = processor(images=image, text="Generate workflow JSON", return_tensors="pt")