Metadata-Version: 2.1
Name: gpt2
Version: 0.0.2
Summary: API client for GPT-2 text generator cloud hosted by Open Medical IO
Home-page: https://github.com/open-medical-io/cloud-gpt-2
Author: Open Medical IO
Author-email: info@openmedical.io
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# gpt2
API client for GPT-2 text generator hosted on the cloud by Open Medical IO

Generate synthetic text from your custom prompt with  the latest released 774M model of OpenAI's GPT-2.
We take care of the GPU backend.
See [openmedical.io/gpt2](https://openmedical.io/gpt2) for product demo and obtaining an API key!

## Installation 
pip install gpt2

## Usage
```python
from gpt2 import Client
c = Client('ACCOUNT EMAIL', 'API SECRET')
output_list = c.quick_generate(prompt='In the summer I enjoy')

"""
Generate text on the large 774M model using your own prompt and standard parameters.
temperature = 1, nsamples = 2, length = 100
This only takes couple seconds per query.
We're training additional models for your use in the near future, such as 774M finetuned on Chinese, Spanish, Wikipedia...
We're also releasing finetuning APIs in September 2019.
Stay tuned :)
"""
```


