Diffusers
Safetensors
StableDiffusionUpscalePipeline
stable-diffusion
valhalla commited on
Commit
c88d982
1 Parent(s): 48e2be8

fix example

Browse files
Files changed (1) hide show
  1. README.md +3 -1
README.md CHANGED
@@ -62,7 +62,9 @@ response = requests.get(url)
62
  low_res_img = Image.open(BytesIO(response.content)).convert("RGB")
63
  low_res_img = low_res_img.resize((128, 128))
64
 
65
- upscaled_image = pipeline(low_res_img).images[0]
 
 
66
  upscaled_image.save("upsampled_cat.png")
67
  ```
68
 
 
62
  low_res_img = Image.open(BytesIO(response.content)).convert("RGB")
63
  low_res_img = low_res_img.resize((128, 128))
64
 
65
+ prompt = "a white cat"
66
+
67
+ upscaled_image = pipeline(prompt=prompt, image=low_res_img).images[0]
68
  upscaled_image.save("upsampled_cat.png")
69
  ```
70