farukbera commited on
Commit
8f90c8c
·
1 Parent(s): 9ca642c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -171,7 +171,7 @@ async def create_ad_template(punchline: str, punchline_color:str, button_text:st
171
  print("Drawing")
172
  #logo_width, logo_height = logo_image.size
173
  logo_width, logo_height = 100, 100 # Desired size for the logo
174
- logo_image = logo_image.resize((logo_width, logo_height))
175
  logo_image_location = ((800 - logo_width) // 2,10)
176
  # Create Generataed Image
177
  # Oku ve okuduktan sonra Image ile oku
@@ -185,7 +185,7 @@ async def create_ad_template(punchline: str, punchline_color:str, button_text:st
185
  ad_template = Image.new("RGB", (800, 600), "#FFFFFF")
186
  print("Template created")
187
  # Add logo
188
- ad_template.paste(uploaded_logo, logo_image_location)
189
  print("Logo added")
190
  # Add generated image
191
  ad_template.paste(generated_image_resized, generated_image_location)
 
171
  print("Drawing")
172
  #logo_width, logo_height = logo_image.size
173
  logo_width, logo_height = 100, 100 # Desired size for the logo
174
+ logo_image_resized = uploaded_logo.resize((logo_width, logo_height))
175
  logo_image_location = ((800 - logo_width) // 2,10)
176
  # Create Generataed Image
177
  # Oku ve okuduktan sonra Image ile oku
 
185
  ad_template = Image.new("RGB", (800, 600), "#FFFFFF")
186
  print("Template created")
187
  # Add logo
188
+ ad_template.paste(logo_image_resized, logo_image_location)
189
  print("Logo added")
190
  # Add generated image
191
  ad_template.paste(generated_image_resized, generated_image_location)