convbot
A conversational bot based on huggingface transformers
Install it
pip install convbot
# or poetry add convbot
# pip install git+htts://github.com/ffreemt/convbot
# poetry add git+htts://github.com/ffreemt/convbot
# To upgrade
pip install convbot -U
# or poetry add convbot@latest
Use it
from convbot import convbot
prin(convertbot("How are you?"))
# I am good # or along that line
The async version aconvbot, potentialy for fastapi or Nonebot plugins and such, is rather artificial since it's based on ThreadPoolExecutor. Hence it's not intended for production. You probably should not spawn too many instances.
from convbot import aconvbot
async def afunc(text):
resp = await aconvbot(text)
...
Interactive
python -m convbot
Not tested in Windows 10 and Mac
The module uses pytorch that is installed differently in Windows than in Linux. To run convbot in Windows or Mac, you may give it a spin by cloning the repo (git clone https://github.com/ffreemt/convbot) and installing pytorch manually.
Metadata
Release files for convbot 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| convbot-0.1.1.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| convbot-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.5 kB
Release files / convbot-0.1.1.tar.gz
| Download URL | convbot-0.1.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ded4be41551ed5947f80274f3c93a386b2ef250245cc0a83fc97f171724def5
|
|
BLAKE2b-256 checksum How to use checksums |
78d91bf8e35d5edf20d0f9b3974858f685fe3112138ed79f10a0c9d0113066f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.7.9 Windows/10
|
Release files / convbot-0.1.1-py3-none-any.whl
| Download URL | convbot-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f7cb36c673b41fc5a44a8bdc993f0a4a92f4dae657cd963659c5c7ab6bee0fe
|
|
BLAKE2b-256 checksum How to use checksums |
d8ffe203116cc771dafb626e1cf756f7f1c26c017b3ed1e8768e5f5569a36efc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.7.9 Windows/10
|