Spaces:
Sleeping
Sleeping
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()
|