# Read the current HTML file with open('/mnt/kimi/output/sweetflames_final.html', 'r', encoding='utf-8') as f: html_content = f.read() # Replace the image paths with the Imgur links # Vanilla cake - replace the first product image html_content = html_content.replace( 'src="/mnt/kimi/upload/IMG_0596.jpeg"', 'src="https://i.imgur.com/EGvfvIQ.jpeg"' ) # Cupcake - replace the second product image html_content = html_content.replace( 'src="/mnt/kimi/upload/A27BCC1C-1674-464F-A9B9-90E1233C6CEC.jpeg"', 'src="https://i.imgur.com/xTZiHK2.jpeg"' ) # Lemon - replace the third product image html_content = html_content.replace( 'src="/mnt/kimi/upload/955BEE17-6ADD-496E-8CEF-0021A017967A.jpeg"', 'src="https://i.imgur.com/AorczRH.jpeg"' ) # Save the updated file with open('/mnt/kimi/output/sweetflames_with_photos.html', 'w', encoding='utf-8') as f: f.write(html_content) print("āœ… DONE! Your website now has your real photos!") print("\nšŸ“ø Photos updated:") print("āœ“ Vanilla cake: https://i.imgur.com/EGvfvIQ.jpeg") print("āœ“ Cupcake: https://i.imgur.com/xTZiHK2.jpeg") print("āœ“ Lemon: https://i.imgur.com/AorczRH.jpeg") print("\nšŸ“ New file: sweetflames_with_photos.html")