Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
2c5df5d2
"...git@developer.sourcefind.cn:OpenDAS/pytorch3d.git" did not exist on "cd5db076d5c849494b86e9404f2a30ff5aa7f0e8"
Unverified
Commit
2c5df5d2
authored
Mar 08, 2023
by
OlivierDehaene
Committed by
GitHub
Mar 08, 2023
Browse files
fix(python-client): stream not set on the sync client (#109)
parent
5fd2dcb5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
clients/python/README.md
clients/python/README.md
+1
-1
clients/python/pyproject.toml
clients/python/pyproject.toml
+1
-1
clients/python/text_generation/__init__.py
clients/python/text_generation/__init__.py
+1
-1
clients/python/text_generation/client.py
clients/python/text_generation/client.py
+1
-1
No files found.
clients/python/README.md
View file @
2c5df5d2
...
...
@@ -52,7 +52,7 @@ print(text)
# ' Rayleigh scattering'
```
### Hugging Fae Inference Endpoint usage
### Hugging Fa
c
e Inference Endpoint usage
```
python
from
text_generation
import
Client
...
...
clients/python/pyproject.toml
View file @
2c5df5d2
[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>"
]
...
...
clients/python/text_generation/__init__.py
View file @
2c5df5d2
...
...
@@ -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
clients/python/text_generation/client.py
View file @
2c5df5d2
...
...
@@ -191,7 +191,7 @@ class Client:
json
=
request
.
dict
(),
headers
=
self
.
headers
,
timeout
=
self
.
timeout
,
stream
=
Fals
e
,
stream
=
Tru
e
,
)
if
resp
.
status_code
!=
200
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment