Files
scribe/scraibe/__main__.py
T
admin 63832d01d3
Mirror and run GitLab CI / build (push) Has been cancelled
Ruff / ruff (push) Has been cancelled
Remove MCP server from project
- Delete mcp_server.py
- Remove MCP startup from __main__.py
- Remove process_mcp_transcribe_task from tasks.py
- Clean MCP references from README.md
2026-06-20 01:40:27 +00:00

29 lines
629 B
Python

"""
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()