hansoneze commited on
Commit
30530ca
·
1 Parent(s): 322d9e5

Switch to Gemini + update requirements

Browse files
app.py CHANGED
@@ -105,11 +105,13 @@ def process_image(input_img, bg_choice, bg_upload, logo_upload, logo_transparenc
105
  "Center": ((result.width - logo.width) // 2, (result.height - logo.height) // 2),
106
  }
107
  result.paste(logo, pos_map[logo_position], logo)
108
-
 
109
  # Apply brand colour tint
110
  if brand_color:
111
  tint = Image.new("RGBA", result.size, brand_color + "20")
112
  result = Image.alpha_composite(result, tint)
 
113
 
114
  timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
115
  result_path = os.path.join(RESULTS_DIR, f"result_{timestamp}.png")
 
105
  "Center": ((result.width - logo.width) // 2, (result.height - logo.height) // 2),
106
  }
107
  result.paste(logo, pos_map[logo_position], logo)
108
+
109
+ '''
110
  # Apply brand colour tint
111
  if brand_color:
112
  tint = Image.new("RGBA", result.size, brand_color + "20")
113
  result = Image.alpha_composite(result, tint)
114
+ '''
115
 
116
  timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
117
  result_path = os.path.join(RESULTS_DIR, f"result_{timestamp}.png")
uploads/upload_1757548711.png ADDED

Git LFS Details

  • SHA256: 531c6d6d9f03ddc955014ea60af1a8d283f7b7e0f66ed86ee243b0ad38154f74
  • Pointer size: 131 Bytes
  • Size of remote file: 690 kB
uploads/upload_1757548826.png ADDED

Git LFS Details

  • SHA256: 531c6d6d9f03ddc955014ea60af1a8d283f7b7e0f66ed86ee243b0ad38154f74
  • Pointer size: 131 Bytes
  • Size of remote file: 690 kB