File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
articles/ai-services/openai/includes Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ Create a new Python file called quickstart.py. Then open it in your preferred ed
93
93
image_file.write(generated_image)
94
94
95
95
# Display the image in the default image viewer
96
- display(Image.open(image_path))
96
+ image = Image.open(image_path)
97
+ image.show()
97
98
```
98
99
99
100
> [! IMPORTANT ]
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ Create a new Python file called **quickstart.py**. Then open it up in your prefe
67
67
response = requests.get(operation_location, headers = headers)
68
68
status = response.json()[' status' ]
69
69
image_url = response.json()[' result' ][' data' ][0 ][' url' ]
70
+
71
+ print (image_url)
70
72
```
71
73
72
74
> [! IMPORTANT ]
You can’t perform that action at this time.
0 commit comments