""" Smoke Signal — Hugging Face Spaces entry point =============================================== This file is the Gradio app for the human review workbench (Stage 8). Currently a placeholder — will be built after Stage 1-7 pipeline is working. To run locally: pip install gradio python app.py To deploy to HF Spaces: Push this repo to a Hugging Face Space with SDK: gradio """ import gradio as gr def placeholder(message): return f"Smoke Signal review workbench — coming in Stage 8. You said: {message}" with gr.Blocks(title="Smoke Signal — Review Workbench") as demo: gr.Markdown(""" # 🔭 Totem: Smoke Signal ### Picture-Book OCR & Codex Extraction — Human Review Workbench **Status:** Pipeline under construction (Stage 0–1 complete) Current stages: - ✅ Stage 0: Project lock & scaffold - ✅ Stage 1: Source registry & hashing - 🔲 Stage 2: Calibration corpus selection - 🔲 Stage 3: PDF profiling & rendering - 🔲 Stage 4: OCR bake-off (Surya baseline) - 🔲 Stage 5: Region detection - 🔲 Stage 6: Reading order resolver - 🔲 Stage 7: LLM normalisation - 🔲 Stage 8: This review workbench """) with gr.Row(): msg = gr.Textbox(label="Test input") out = gr.Textbox(label="Output") msg.submit(placeholder, inputs=msg, outputs=out) if __name__ == "__main__": demo.launch()