Spaces:
Sleeping
Sleeping
update2
Browse files- image_functions.py +3 -4
image_functions.py
CHANGED
|
@@ -84,10 +84,9 @@ def generate_image(file_path, size, quality, category, sentiment, user_prompt, p
|
|
| 84 |
|
| 85 |
if platform == "Google Display Network":
|
| 86 |
size_messages = {
|
| 87 |
-
0: "The aspect ratio of the image should be
|
| 88 |
-
1: "The aspect ratio of the image should be
|
| 89 |
-
2: "The aspect ratio of the image should be
|
| 90 |
-
3: "The aspect ratio of the image should be 9:16."
|
| 91 |
}
|
| 92 |
|
| 93 |
img_size = size_messages.get(i, "")
|
|
|
|
| 84 |
|
| 85 |
if platform == "Google Display Network":
|
| 86 |
size_messages = {
|
| 87 |
+
0: "The aspect ratio of the image should be 1024x1024",
|
| 88 |
+
1: "The aspect ratio of the image should be 1536x1024.",
|
| 89 |
+
2: "The aspect ratio of the image should be 1024x1536.",
|
|
|
|
| 90 |
}
|
| 91 |
|
| 92 |
img_size = size_messages.get(i, "")
|