mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
fix: adjust syntax to avoid circular import
This commit is contained in:
parent
7e810e7628
commit
154cf67dad
@ -18,16 +18,15 @@ from text_generation.inference_api import InferenceAPIClient, InferenceAPIAsyncC
|
|||||||
|
|
||||||
__version__ = "0.7.0"
|
__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__ = [
|
__all__ = [
|
||||||
"Client",
|
"Client",
|
||||||
"AsyncClient",
|
"AsyncClient",
|
||||||
"InferenceAPIClient",
|
"InferenceAPIClient",
|
||||||
"InferenceAPIAsyncClient",
|
"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."
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user