Downloads ยท 30 days
9
3% of all-time downloads
BabaK07/pixeltext-ai
pixeltext-ai is a image-to-text model from BabaK07. Use it when you need a caption or text from an image. It is set up for transformers. The card lists the license as apache-2.0.
๐ FIXED: Hub loading now works properly!
Downloads ยท 30 days
9
3% of all-time downloads
All-time downloads
338
Public
Repo size
11.7 GB
Likes
0
Public
Click a slice to open those files.
.json34.8 MB ยท 100%
From the Hugging Face model README
๐ FIXED: Hub loading now works properly!
A high-performance OCR model based on PaliGemma-3B, now with proper Hugging Face Hub support.
AutoModel.from_pretrained() now works correctlyfrom transformers import AutoModel
from PIL import Image
# Load model from Hub (FIXED!)
model = AutoModel.from_pretrained("BabaK07/pixeltext-ai", trust_remote_code=True)
# Load image
image = Image.open("your_image.jpg")
# Extract text
result = model.generate_ocr_text(image)
print(f"Text: {result['text']}")
print(f"Confidence: {result['confidence']:.1%}")
print(f"Success: {result['success']}")
AutoModel.from_pretrained()from transformers import AutoModel
from PIL import Image
model = AutoModel.from_pretrained("BabaK07/pixeltext-ai", trust_remote_code=True)
image = Image.open("document.jpg")
result = model.generate_ocr_text(image)
result = model.generate_ocr_text(
image,
prompt="<image>Extract all invoice details including amounts:"
)
images = [Image.open(f"doc_{i}.jpg") for i in range(5)]
results = model.batch_ocr(images)
result = model.generate_ocr_text("path/to/your/image.jpg")
pip install torch transformers pillow
| Feature | Before (Broken) | After (FIXED) |
|---|---|---|
| Hub Loading | โ AttributeError | โ Works perfectly |
| from_pretrained | โ Missing | โ Implemented |
| AutoModel | โ Failed | โ Compatible |
| Configuration | โ Invalid | โ Proper config |
For issues or questions, please check the model repository or contact the author.
Status: โ FIXED and ready for production use!