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.1.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for youchat_py-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 021a54135f763370df9e88b936837bb346928e8b14879951b55c5f94c8b39320 |
|
MD5 | f1f6694e4d19a7f5b731efc408b64d69 |
|
BLAKE2b-256 | bd45a293e2fbadb8e12a81c510be2a42c7901f33267cae685b6d2c64d2cff7c1 |