- Delete mcp_server.py - Remove MCP startup from __main__.py - Remove process_mcp_transcribe_task from tasks.py - Clean MCP references from README.md
29 lines
629 B
Python
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()
|