--- title: Blocksmith emoji: 📊 colorFrom: indigo colorTo: blue sdk: gradio sdk_version: 6.13.0 app_file: app.py pinned: false --- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference # 🧱 Blocksmith AI (Powered by Grok) Blocksmith is an AI-powered text structuring and editing tool that transforms raw input into modular “blocks” — enabling precise editing, rewriting, and full-document refinement. --- ## ✨ Features ### 🧩 Block-Based Editing - Paste any text - Automatically split into structured blocks - Select and edit individual lines easily ### ✨ AI Rewrite (Block-Level) - Improve clarity and professionalism of a selected block - Works like a “smart editor” for each line ### 🚀 AI Rewrite (Full Document) - Rewrites the entire text - Outputs result separately (preserves original blocks) - Ideal for polishing final drafts ### 🛠 Manual Control - Edit any block manually - Update and refine iteratively --- ## 🧠 Why Blocksmith? Most AI tools treat text as one big blob. **Blocksmith introduces granular AI control over text structure.** This allows: - Line-by-line refinement - Selective rewriting - Better reasoning workflows --- ## 🖥️ How to Use 1. Paste your text into the input box 2. Click **Create Blocks** 3. Select a block from the dropdown 4. Choose an action: - **Update** → manually edit - **✨ Rewrite (AI)** → improve selected block - **🚀 Rewrite All (AI)** → rewrite entire text 5. View the rewritten output in the **Rewritten Full Text** section --- ## ⚙️ Tech Stack - Frontend/UI: Gradio - LLM Backend: Grok (xAI) - Hosting: Hugging Face Spaces ## 🚧 Known Limitations - Depends on external API (latency may vary) - Large inputs may be truncated due to token limits - Block splitting is line-based (not semantic… yet) ## 🔮 Future Improvements - Multi-agent rewriting (per block) - Notion-style inline editing - Diff view (original vs rewritten) - Export to Markdown / Docs - Style modes (formal, concise, creative) ## 👨‍💻 Author Anuraag Rath