jmparejaz commited on
Commit
483d8b2
Β·
verified Β·
1 Parent(s): 64213c9

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +71 -12
README.md CHANGED
@@ -1,12 +1,71 @@
1
- ---
2
- title: Layoutlmv3 Demo
3
- emoji: πŸƒ
4
- colorFrom: indigo
5
- colorTo: pink
6
- sdk: gradio
7
- sdk_version: 6.10.0
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LayoutLMv3 Document Classifier Demo
2
+
3
+ This is a Gradio demo for the `jmparejaz/layoutlmv3-base-expedientes` model - a fine-tuned LayoutLMv3 model for classifying Colombian legal documents (expedientes).
4
+
5
+ ## πŸ“‹ Overview
6
+
7
+ This demo provides an interactive interface to test the document classification capabilities of the LayoutLMv3 model. The demo is designed to run on CPU for accessibility, though this means inference may be slower than with GPU acceleration.
8
+
9
+ ## πŸš€ Quick Start
10
+
11
+ ### Local Development
12
+
13
+ ```bash
14
+ # Clone this repository
15
+ git clone https://huggingface.co/spaces/jmparejaz/layoutlmv3-demo
16
+ cd layoutlmv3-demo
17
+
18
+ # Install dependencies
19
+ pip install -r requirements.txt
20
+
21
+ # Run the demo
22
+ python app.py
23
+ ```
24
+
25
+ The demo will be available at `http://localhost:7860`
26
+
27
+ ## πŸ“¦ Features
28
+
29
+ - **Interactive Classification**: Upload document images via URL and get instant classification
30
+ - **Mock Pipeline**: Demonstrates the expected behavior (replace with actual model for production)
31
+ - **Comprehensive Documentation**: Includes usage examples and implementation notes
32
+ - **Responsive UI**: Clean, user-friendly interface with Gradio
33
+
34
+ ## πŸ”§ Configuration
35
+
36
+ The demo uses a mock inference pipeline for demonstration purposes. To use the actual model:
37
+
38
+ 1. Replace the `MockInferencePipeline` class with the real implementation
39
+ 2. Load the actual LayoutLMv3 model from Hugging Face
40
+ 3. Use the LayoutLMv3Processor for proper preprocessing
41
+
42
+ ## πŸ“Š Model Information
43
+
44
+ - **Model Name**: `jmparejaz/layoutlmv3-base-expedientes`
45
+ - **Version**: 0.1.0
46
+ - **Status**: Under active development
47
+ - **License**: Apache 2.0
48
+ - **Framework**: Transformers + LayoutLMv3
49
+
50
+ ## ⚠️ Limitations
51
+
52
+ - **Version 0.1.0**: This is an early development version
53
+ - **CPU Inference**: Demo runs on CPU (slower than GPU)
54
+ - **Mock Implementation**: Uses mock results for demonstration
55
+ - **Not Production-Ready**: Model is still undergoing improvements
56
+
57
+ ## 🎯 Roadmap
58
+
59
+ - [ ] Replace mock pipeline with actual model loading
60
+ - [ ] Add GPU acceleration support
61
+ - [ ] Implement batch processing
62
+ - [ ] Add more document examples
63
+ - [ ] Improve error handling and validation
64
+
65
+ ## 🀝 Contributing
66
+
67
+ Contributions are welcome! Please open issues or pull requests on the Hugging Face Space.
68
+
69
+ ## πŸ“œ License
70
+
71
+ This project is licensed under the Apache 2.0 License.