diff --git a/clients/python/README.md b/clients/python/README.md index 0f0b32f0..79b88377 100644 --- a/clients/python/README.md +++ b/clients/python/README.md @@ -52,7 +52,7 @@ print(text) # ' Rayleigh scattering' ``` -### Hugging Fae Inference Endpoint usage +### Hugging Face Inference Endpoint usage ```python from text_generation import Client diff --git a/clients/python/pyproject.toml b/clients/python/pyproject.toml index 4c7b24e6..0b8fa8c7 100644 --- a/clients/python/pyproject.toml +++ b/clients/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "text-generation" -version = "0.2.0" +version = "0.2.1" description = "Hugging Face Text Generation Python Client" license = "Apache-2.0" authors = ["Olivier Dehaene "] diff --git a/clients/python/text_generation/__init__.py b/clients/python/text_generation/__init__.py index 1f5e6ce5..db09cdfa 100644 --- a/clients/python/text_generation/__init__.py +++ b/clients/python/text_generation/__init__.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "0.2.0" +__version__ = "0.2.1" from text_generation.client import Client, AsyncClient from text_generation.inference_api import InferenceAPIClient, InferenceAPIAsyncClient diff --git a/clients/python/text_generation/client.py b/clients/python/text_generation/client.py index 3e9bbc36..23655240 100644 --- a/clients/python/text_generation/client.py +++ b/clients/python/text_generation/client.py @@ -191,7 +191,7 @@ class Client: json=request.dict(), headers=self.headers, timeout=self.timeout, - stream=False, + stream=True, ) if resp.status_code != 200: