Skip to main content

pack_name descr

Project description

convbot

testspythonCode style: blackLicense: MITPyPI version

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

convbot-0.1.1.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

convbot-0.1.1-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page