"...git@developer.sourcefind.cn:OpenDAS/pytorch3d.git" did not exist on "cd5db076d5c849494b86e9404f2a30ff5aa7f0e8"
Unverified Commit 2c5df5d2 authored by OlivierDehaene's avatar OlivierDehaene Committed by GitHub
Browse files

fix(python-client): stream not set on the sync client (#109)

parent 5fd2dcb5
......@@ -52,7 +52,7 @@ print(text)
# ' Rayleigh scattering'
```
### Hugging Fae Inference Endpoint usage
### Hugging Face Inference Endpoint usage
```python
from text_generation import Client
......
[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 <olivier@huggingface.co>"]
......
......@@ -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
......@@ -191,7 +191,7 @@ class Client:
json=request.dict(),
headers=self.headers,
timeout=self.timeout,
stream=False,
stream=True,
)
if resp.status_code != 200:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment