Skip to main content

No project description provided

Project description

Hugging Chat Python

Installation

As library

From Pypi

pip install hgchat

From Codeberg

pip install --index-url https://codeberg.org/api/packages/Bavarder/pypi/simple/ hgchat

As an interactive prompt

git clone https://codeberg.org/Bavarder/hgchat.git # or https://github.com/Bavarder/hgchat.git
cd hgchat

Usage

As library

from hgchat import HGChat
hgchat = HGChat()

r = hgchat.ask(user_input)
for i in r:
    char = i["token"]["text"]
    if char == "</s>":
        print("\n", end="")
    else:
        print(char, end="")

As an interactive prompt

python chat.py

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

hgchat-0.1.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

hgchat-0.1.3-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file hgchat-0.1.3.tar.gz.

File metadata

  • Download URL: hgchat-0.1.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.11 Linux/6.3.0

File hashes

Hashes for hgchat-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ac103eef866bc091af0b4c2c5097c5163868acde2a86001e526b8f1d9b7384d2
MD5 2fb3b934f51080dff3b0b500d805ae26
BLAKE2b-256 2d1ae1d7a2cb7dc3be5e13bd82c62b44e174085d122057f485218c4d88d0cce5

See more details on using hashes here.

File details

Details for the file hgchat-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: hgchat-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.11 Linux/6.3.0

File hashes

Hashes for hgchat-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 25725da85864cb57abd16d9ce15c270f785b7c1073ad30470609878226b93b0b
MD5 f2e42b93717be1fa33cd2a938c1e10ac
BLAKE2b-256 317be26fdbce33e2bb68ba952cb21c260792a900766b8f767f040bdfbee48d03

See more details on using hashes here.

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