Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

715 B
Raw Blame
from __future__ import annotations

import logging

from .application import WhisperXApplication
from .config import ServiceConfig
from .engine import WhisperXEngine
from .server import serve


def main() -> None:
    logging.basicConfig(
        level=logging.INFO,
        format="%(asctime)s %(levelname)s [%(name)s] %(message)s",
    )
    config = ServiceConfig.from_environment()
    logging.getLogger("hypit.whisperx").info(
        "loading model=%s device=%s compute=%s batch=%d",
        config.model,
        config.device,
        config.compute,
        config.batch_size,
    )
    engine = WhisperXEngine(config)
    serve(WhisperXApplication(config, engine))


if __name__ == "__main__":
    main()