Update README.md
Browse files
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,
|
| 76 |
from PIL import Image
|
| 77 |
|
| 78 |
processor = AutoProcessor.from_pretrained("ServiceNow/Pixtral-12B-2409-StarFlow")
|
| 79 |
-
model =
|
| 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")
|