INNER CODE UNIT · Python

main

Mr-funny/hbg-classical-poem-silk-video · skill/classical-poem-silk-video/scripts/docker_gemini_i2v.py:27

async def main() -> int:
    image = Path(os.environ["POEM_I2V_IMAGE"])
    output = Path(os.environ["POEM_I2V_OUTPUT"])
    prompt = os.environ["POEM_I2V_PROMPT"]
    cookie_file = Path(os.environ.get("GEMINI_COOKIE_FILE", "/data/auth/gemini/cookies.json"))
    output.mkdir(parents=True, exist_ok=True)

    cookies = load_cookie_map(cookie_file)
    client = GeminiClient(
        cookies["__Secure-1PSID"],
        cookies.get("__Secure-1PSIDTS"),
        proxy=os.environ.get("HTTPS_PROXY") or None,
    )
    await client.init(
        timeout=900,
        auto_close=False,
        auto_refresh=True,
        refresh_interval=600,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…