tuandunghcmut/mllm-dla-demo-gradio
0
MLLM Document Layout Analysis Demo
This Streamlit application demonstrates the capabilities of Multimodal Large Language Models (MLLMs) for Document Layout Analysis (DLA).
Features
- Upload PDFs or images.
- Select from multiple SOTA MLLMs (via Hugging Face Inference API).
- Customizable inference prompt.
- Visualizes bounding boxes, labels, and entity relations.
Setup
- Install dependencies:
pip install -r requirements.txt- Install
poppler-utils(required bypdf2image): - On Linux:
sudo apt-get install poppler-utils - On Mac:
brew install poppler - On Windows: Download from http://blog.alivate.com.au/poppler-windows/ and add
binto PATH.
Running the App
streamlit run app.py