Pointf5ive's picture
Upload 13 files
532d429 verified
Raw
History Blame Contribute Delete
1.42 kB
"""
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()