Metadata-Version: 2.4
Name: ocr_translate-hugging_face
Version: 0.4.0
Summary: Plugins to enable usage of HuggingFace Models in ocr_translate
Keywords: django,translation
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
License-File: LICENSE.txt
Requires-Dist: django-ocr_translate>=0.7.0,<1.0
Requires-Dist: torch~=2.8.0
Requires-Dist: torchvision~=0.23.0
Requires-Dist: transformers~=4.56.1
Requires-Dist: tokenizers~=0.22.0
Requires-Dist: protobuf~=6.32.0
Requires-Dist: fugashi~=1.5.1
Requires-Dist: unidic-lite~=1.0.8
Requires-Dist: sacremoses~=0.1.1
Requires-Dist: safetensors~=0.6.2
Requires-Dist: sentencepiece~=0.2.1
Requires-Dist: pre-commit ; extra == "pre-commit"
Requires-Dist: pylint ; extra == "pre-commit"
Requires-Dist: pylint-pytest ; extra == "pre-commit"
Requires-Dist: pylint-django ; extra == "pre-commit"
Requires-Dist: flit ; extra == "release"
Requires-Dist: pytest ; extra == "tests"
Requires-Dist: pytest-cov ; extra == "tests"
Requires-Dist: pytest-django ; extra == "tests"
Project-URL: Source, https://github.com/Crivella/ocr_translate-hugging_face
Provides-Extra: pre-commit
Provides-Extra: release
Provides-Extra: tests

# Plugin ocr_translate_hugging_face

This is a plugin for the [ocr_translate](https://github.com/Crivella/ocr_translate).
Plugins to enable usage of [HuggingFace Models](https://huggingface.co/) in ocr_translate

## Usage

### For versions of the server `>=0.2.0`

- Install this by running `pip install ocr_translate-hugging_face`
- Add `ocr_translate_hugging_face` to your `INSTALLED_APPS` in `settings.py`
- Run the server with `AUTOCREATE_VALIDATED_MODELS` once

### For versions of the server `>=0.6`

- Install through the server plugin manager

### For versions of the server `>=0.7`

- Install through the server plugin manager **OR** manually by running `pip install ocr_translate-hugging_face`

