import base64 try: with open("simboti_logo.jpg", "rb") as f: encoded = base64.b64encode(f.read()).decode("utf-8") with open("assets.py", "w") as f: f.write(f'LOGO_BASE64 = "{encoded}"\n') print("Successfully created assets.py") except Exception as e: print(f"Error: {e}")