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.1.tar.gz
(4.1 kB
view hashes)