Instructions to use manishw10/devgen-trocr-devanagari-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use manishw10/devgen-trocr-devanagari-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("paudelanil/trocr-devanagari-2") model = PeftModel.from_pretrained(base_model, "manishw10/devgen-trocr-devanagari-lora") - Transformers
How to use manishw10/devgen-trocr-devanagari-lora with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="manishw10/devgen-trocr-devanagari-lora")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("manishw10/devgen-trocr-devanagari-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Stability: Reverted to Gradio 3.50.2 with Premium CSS Styling
manishw768beaa2 -
Final: Stable All-In-One Suite (UI + Debug + Scoring + Fixes)
manishw76cd700e -
Fix: Event context and re-enable premium Gradio 4.x theme
manishw7ced8950 -
Layout: Move visual diagnostic to main screen and preserve all logic
manishw7e8bc8af -
Feature: Premium SVG Confidence Gauge and math-backed scoring
manishw742d5462 -
Design: Final Premium Suite with Pro Mode Toggle
manishw79ebb598 -
Fix: Restore 1.75 AR threshold for character routing
manishw7ecce7a8 -
Diagnostic: Add visual before/after comparison to UI
manishw76dc6d66 -
Final Fidelity: Mirror local Preprocess-Route-Recognize pipeline
manishw7dc17282 -
Deep Alignment: Merged LoRA weights and synced token configs
manishw79487c54 -
Restore: 1:1 copy of original backend routing and preprocessing logic
manishw7a00b760 -
Fix: Corrected routing logic and added manual mode override
manishw711f7e9d -
Premium Update: Glassmorphism UI and training-accurate preprocessing
manishw7b53bf6e -
Feature: Full Smart Pipeline with Auto-Routing and Preprocessing
manishw7ae3fa31 -
Feature: Integrated CNN model and optimized TrOCR with Beam Search
manishw7adb49d0 -
Robust: Bypass PEFT generate wrapper to fix inference crash
manishw799ff973 -
Fix: Upgrade PEFT and use explicit pixel_values for inference
manishw7795670b -
Universal: Fix Peft error and add local/HF detection
manishw74fe11e0 -
Fix: Quote python_version to avoid 3.1 error
manishw7b80a0db -
Final: Stable Gradio 3.x revert
manishw71172399 -
Fix: Surgical patch to enable Recognize button
manishw739ef92c -
Robust: Monkey-patch Gradio API schema bug
manishw7a6259a8 -
Fix: Use quoted version strings for HF config
manishw7e4fa725 -
Robust Fix: Pin env to Python 3.9 and Gradio 4.30
manishw71d10899 -
Fix: Strip examples to bypass schema bug
manishw72e6b0fc -
Upgrade: Use modern Gradio with stable Interface
manishw7fba63e1 -
Fix: Switch to stable Gradio 3.x Interface
manishw78c98613 -
Fix: Disable show_api to bypass Gradio bug
manishw7eead1c4 -
Fix: Stable Gradio 4.40.0 and server binding
manishw7068fe4e -
Fix: Sync SDK version with requirements
manishw74883c6e -
Fix: Add fn and outputs to gr.Examples
manishw7db9cd91 -
Fix: Pin huggingface_hub to resolve import error
manishw71609e16 -
Fix python version quotes
manishw76dcc15e -
Fix: Pin python version and update model link
manishw789f6f49 -
Initial upload: TrOCR LoRA adapter and Gradio demo
manishw7e74b0f8