# 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")