katuni4ka commited on
Commit
bc9ab74
·
verified ·
1 Parent(s): 60cc253

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -73,10 +73,10 @@ import openvino_genai as ov_genai
73
  from PIL import Image
74
 
75
  device = "CPU"
76
- pipe = ov_genai.Text2ImagePipeline(model_path, device, guidance_scale=0.0, num_inference_steps=4)
77
 
78
  prompt = "A cat holding a sign that says hello world"
79
- image_tensor = pipe.generate(prompt)
80
  image = Image.fromarray(image_tensor.data[0])
81
 
82
  ```
 
73
  from PIL import Image
74
 
75
  device = "CPU"
76
+ pipe = ov_genai.Text2ImagePipeline(model_path, device)
77
 
78
  prompt = "A cat holding a sign that says hello world"
79
+ image_tensor = pipe.generate(prompt, guidance_scale=0.0, num_inference_steps=4)
80
  image = Image.fromarray(image_tensor.data[0])
81
 
82
  ```