fix(python-client): stream not set on the sync client (#109)
This commit is contained in:
parent
5fd2dcb513
commit
2c5df5d2af
|
@ -52,7 +52,7 @@ print(text)
|
|||
# ' Rayleigh scattering'
|
||||
```
|
||||
|
||||
### Hugging Fae Inference Endpoint usage
|
||||
### Hugging Face Inference Endpoint usage
|
||||
|
||||
```python
|
||||
from text_generation import Client
|
||||
|
|
|
@ -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 <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:
|
||||
|
|
Loading…
Reference in New Issue