fix: adjust syntax to avoid circular import

This commit is contained in:
drbh 2024-07-19 17:24:35 +00:00
parent 7e810e7628
commit 154cf67dad

View File

@ -18,16 +18,15 @@ from text_generation.inference_api import InferenceAPIClient, InferenceAPIAsyncC
__version__ = "0.7.0"
DEPRECATION_WARNING = (
"`text_generation` clients are deprecated and will be removed in the near future. "
"Please use the `InferenceClient` from the `huggingface_hub` package instead."
)
__all__ = [
"Client",
"AsyncClient",
"InferenceAPIClient",
"InferenceAPIAsyncClient",
"DEPRECATION_WARNING",
]
DEPRECATION_WARNING = (
"`text_generation` clients are deprecated and will be removed in the near future. "
"Please use the `InferenceClient` from the `huggingface_hub` package instead."
)