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