userIdc2024 commited on
Commit
1c0684b
·
verified ·
1 Parent(s): f1de9f5
Files changed (1) hide show
  1. 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 1.9:1.",
88
- 1: "The aspect ratio of the image should be 1:1.",
89
- 2: "The aspect ratio of the image should be 4:5.",
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, "")