fix example
Browse files
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 |
-
|
|
|
|
|
|
|
| 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 |
|