File size: 1,418 Bytes
532d429
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
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()