Skip to content

maslionok/custom_package

Repository files navigation

Glebs Package

How to Upload the Package to PyPI

Install the Required Packages

pip install build

Build the Package

python -m build

Upload the Package

twine upload dist/*

How to Use Glebs Package

Installation

pip install glebs_package

Using the Language Detection Pipeline

from glebs_package.langident import FloretPipeline

lang_pipeline = FloretPipeline()
lang_pipeline.predict("Ich komme aus Deutschland")

lang_pipeline.predict("Ich komme aus Deutschland", model_name="floret_model.bin", repo_id="Maslionoksudo_pipelines", revision="main")

Please pay attention that currently the model is in a random repository and it will be later moved to the official repository.

Using the QA Score Model

from glebs_package.ocrqa import OCRPipeline

ocr_pipeline = OCRPipeline()
ocr_pipeline.predict("Ich komme aus Deutschland")

Specifying a Language

ocr_pipeline.predict("Ich komme aus Deutschland", "de")

Specifying version for bloom

ocr_pipeline.predict("Ich komme aus Deutschland", "de", version = "1.0.6")

Specifying diagnostics

ocr_pipeline.predict("Ich komme aus Deutschland", "de", version = "1.0.6", diagnostics = True)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors