haystack/haystack/__init__.py
ZanSara 462f3a5c99
feat: globally disable progress bars (#5207)
* add SilenceableTqdm and update usage

* pylint

* rename module

* add tests
2023-06-27 11:45:17 +02:00

20 lines
751 B
Python

# pylint: disable=wrong-import-position
# Logging is not configured here on purpose, see https://github.com/deepset-ai/haystack/issues/2485
from importlib import metadata
__version__: str = str(metadata.version("farm-haystack"))
import haystack.silenceable_tqdm # Needs to be imported first to wrap TQDM for all following modules
from haystack.schema import Document, Answer, Label, MultiLabel, Span, EvaluationResult, TableCell
from haystack.nodes.base import BaseComponent
from haystack.pipelines.base import Pipeline
from haystack.environment import set_pytorch_secure_model_loading
from haystack.mmh3 import hash128
# Enables torch's secure model loading through setting an env var.
# Does not use torch.
set_pytorch_secure_model_loading()