CoolFace
Apppublic

fmeres/granite-docling-demo

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
2likes
App README

๐Ÿ”ฌ Granite Docling 258M - Online Demo

Experience IBM's cutting-edge Vision-Language Model for document processing and conversion directly in your browser on Hugging Face Spaces!

๐Ÿค– This Space uses the [IBM Granite Docling 258M](https://huggingface.co/ibm-granite/granite-docling-258M) Vision-Language Model hosted on Hugging Face Hub

๐ŸŒŸ What is Granite Docling 258M?

The IBM Granite Docling 258M is a state-of-the-art Vision-Language Model (VLM) designed for advanced document understanding and conversion. This model excels at:

  • โ€”๐Ÿ“„ Multi-Format Processing: PDF, DOCX, images
  • โ€”๐Ÿ” Intelligent Analysis: Document structure detection
  • โ€”๐Ÿ“ Smart Conversion: Semantic Markdown generation
  • โ€”โšก Fast Processing: 19x faster document insights
  • โ€”๐Ÿ–ผ๏ธ Vision Understanding: OCR and image analysis

๐Ÿš€ Features Available in This Demo

๐Ÿ” Document Analysis (Fast) - Recommended

  • โ€”19x faster than full conversion
  • โ€”Quick structural insights and metadata
  • โ€”Perfect for understanding document layout
  • โ€”Ideal for the free tier with processing time limits

๐Ÿ“ Full Markdown Conversion

  • โ€”Complete document-to-Markdown transformation
  • โ€”Preserves formatting and structure
  • โ€”Comprehensive text extraction

๐Ÿ“Š Table Extraction

  • โ€”Detects and extracts tabular data
  • โ€”Maintains table structure in Markdown format

๐Ÿ‘€ Quick Preview

  • โ€”Fast content sampling
  • โ€”Great for quick document verification

๐Ÿ’ก How to Use

  1. 1.๐Ÿ“ค Upload your document (PDF, DOCX, or image)
  2. 2.โš™๏ธ Select processing mode (try "Document Analysis" first!)
  3. 3.๐Ÿš€ Click "Process Document"
  4. 4.๐Ÿ“Š View results in the tabs below

โšก Performance & Tips

  • โ€”Document Analysis mode is optimized for speed and works great on the free tier
  • โ€”CPU processing optimized for reliable performance
  • โ€”Processing time varies based on document size and complexity
  • โ€”Free CPU tier provides reliable processing with timeout limitations for very large documents
  • โ€”Upgrade to GPU tier for faster processing speeds

๐Ÿ› ๏ธ Technical Details

  • โ€”Model: IBM Granite Docling 258M Vision-Language Model
  • โ€”Model Hub: Automatically loaded from ibm-granite/granite-docling-258M on Hugging Face
  • โ€”Backend: Docling framework with PyMuPDF optimization
  • โ€”Processing: CPU optimized (GPU available with paid tier upgrade)
  • โ€”Hosting: ๐Ÿค— Hugging Face Spaces (Free CPU Tier)

๐Ÿ”— Links & Resources

๐ŸŽฏ Perfect For

  • โ€”๐Ÿ“‹ Document Analysis: Quick insights into document structure
  • โ€”๐Ÿ”„ Format Conversion: PDF/DOCX to clean Markdown
  • โ€”๐Ÿ“Š Data Extraction: Tables and structured content
  • โ€”๐Ÿงช Research: Testing document processing capabilities
  • โ€”๐Ÿš€ Prototyping: Exploring Vision-Language Model capabilities

๐Ÿ—๏ธ Built With

  • โ€”IBM Granite Docling 258M - State-of-the-art VLM
  • โ€”Gradio - Interactive web interface
  • โ€”PyMuPDF - Fast PDF processing optimization
  • โ€”Hugging Face Transformers - Model inference
  • โ€”PyTorch - Deep learning framework

๐ŸŽ‰ Try it now! Upload a document above and experience the power of IBM's Granite Docling model with free GPU acceleration!

This demo showcases a production-ready implementation with comprehensive security auditing and performance optimizations.