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.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

hgchat-0.1.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hgchat-0.1.1.tar.gz
  • Upload date:
  • Size: 2.0 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.1.tar.gz
Algorithm Hash digest
SHA256 89bbf909cc2b44714e824b4ed465f8a583a36a8b7706ad0e11711d11d6cafb91
MD5 2ff4dd85cdec3078a82c346d76363e54
BLAKE2b-256 753ac97139d55202e757ccd4ca2198848fde01ed7bcaa71f2a9f5023c5e7ad88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hgchat-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b654da3f5673ceafa5e987dbaae5ccdf858aa40e53f69470cc1010b26e45c3a3
MD5 854c36810d332a148dd3c64993625c84
BLAKE2b-256 e78107b6a299ee6c2faa056873ca575f71cd26a4e58a282ed7b6115105309278

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