""" Entrypoint for running ScrAIbe as a module: python -m scraibe Always launches the Web GUI (Gradio). Optionally launches: - Watch-folder mode """ import logging logger = logging.getLogger("scraibe.__main__") from .webui import create_app if __name__ == "__main__": # Optionally start watch-folder mode (non-blocking) try: from .watcher import start_watcher start_watcher() logger.info("Watch-folder mode started.") except Exception as e: logger.warning("Failed to start watch-folder mode (WebUI will continue): %s", e) # Always start WebUI (Gradio) create_app()