from __future__ import annotations import logging from src.runtime import AppRuntime from src.ui.callbacks import AppCallbacks from src.ui.layout import create_demo logging.basicConfig(level=logging.INFO, format="%(levelname)s:%(name)s:%(message)s") runtime = AppRuntime() callbacks = AppCallbacks(runtime) demo, LAUNCH_KWARGS = create_demo(callbacks) if __name__ == "__main__": runtime.preload_clip_model() demo.launch(**LAUNCH_KWARGS)