Simple communication with YouChat in python.
Project description
youchat-py
Simple communication with YouChat in python.
Installation
pip install -r requirements.txt
Usage
usage: youchat.py [-h] [-out_type OUT_TYPE] MESSAGE
positional arguments:
MESSAGE Message to YouChat
options:
-h, --help show this help message and exit
-out_type OUT_TYPE, -ot OUT_TYPE
Output type
Example 1
Use in CLI mode
> python youchat.py "Hello!"
Returns: `'{"generated_text": "Hello! How can I assist you today?"}'`
> python youchat.py -out_type string "How are you?"
Returns: `'As an AI language model, I don't have feelings in the same way humans ...'`
Example 2
Use in module mode test_unit.py:
from youchat import you_message
print( you_message(text='Hello, World!', out_type="string") )
Returns: '"Hello, World!" is a common phrase used in ...'
Used library
- seleniumbase
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
youchat-py-0.2.0.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for youchat_py-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 744a9e8ec41c5233a91e98cf21a67749c98d0c34c5605850b8798da5d00a03e6 |
|
MD5 | 363771758bd19a9813ce9aaa6d04bcb5 |
|
BLAKE2b-256 | 8721fb590f6e18e8473e5d2ea60b173c2a7e18f968d079821e63eb38fbfdc128 |