Add watch-folder mode and wire MCP/watcher into entrypoint
Mirror and run GitLab CI / build (push) Waiting to run
Ruff / ruff (push) Waiting to run

- New watcher.py: polls WATCH_DIR, enqueues transcription+summary via Celery.
- New process_watch_file_task in tasks.py.
- Updated __main__.py: WebUI always runs; MCP and watcher run in parallel when enabled.
This commit is contained in:
admin
2026-06-19 17:18:20 +00:00
parent 7a31be9de5
commit bdd0a80d8d
3 changed files with 249 additions and 1 deletions
+7 -1
View File
@@ -4,7 +4,9 @@ Entrypoint for running ScrAIbe as a module:
python -m scraibe
Always launches the Web GUI (Gradio).
Optionally launches an MCP-style API server in parallel.
Optionally launches:
- MCP-style API server
- Watch-folder mode
"""
import os
@@ -38,5 +40,9 @@ if __name__ == "__main__":
t = threading.Thread(target=_run_mcp_server, daemon=True)
t.start()
# Optionally start watch-folder mode
from .watcher import start_watcher
start_watcher()
# Always start WebUI (Gradio)
create_app()