A Python library for the Cohere endpoints in AWS Sagemaker
Project description
Cohere Python SDK (AWS SageMaker)
Install
pip install cohere-sagemaker
Usage
from cohere_sagemaker import Client
client = Client(endpoint_name='my-cohere-endpoint')
response = client.generate(prompt="Tell me a story about")
print(response.generations[0].text)
# a time when you had to make a difficult decision. What did you do
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cohere-sagemaker-0.1.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for cohere_sagemaker-0.1.0-py3.9-macosx-10.9-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3718663e099d95267b8c1ef5e2e13499eb9af4f3b13ecf215ef9ef1de4c2317 |
|
MD5 | a10a5c2c6f3cb89ec821fed330de21e1 |
|
BLAKE2b-256 | 93116c2e4a225f01e1e0d24d08b41f3e8dd5b1b7cd314f0181b649d5472c51b1 |