Unofficial Huggingface chat async wrapper for reverse engineered api
Reason this release was yanked:
outdated
Project description
Unofficial HuggingFace chat api.
Description
A simple async ready wrapper for reverse engineered API of HuggingChat.
The project has no affiliation with Hugging Face, and it is neither endorsed nor officially supported by Hugging Face. The repository owner(s) and contributors cannot be held responsible for any damages or losses resulting from the utilization of this repository or its contents. Users bear sole responsibility for their actions and any potential consequences that may ensue.
Installing
pip install hf-chat
Quickstart
import asyncio
from hf_chat import ChatCompletion
async def main():
chat = ChatCompletion("email", "password")
async with chat:
await chat.create_conversation(switch_to=True)
user_input = input('> ')
print(await chat.ask(user_input))
asyncio.run(main())
Inspired by Soulter/hugging-chat-api
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
Built Distribution
File details
Details for the file hf_chat-0.1.0.tar.gz
.
File metadata
- Download URL: hf_chat-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0438f40a3a29a18d7fb405e88433ee4c408e1ab2a2328ba21fd044c77c607c9e |
|
MD5 | 296f4cb979c5435bb161d08f378daf36 |
|
BLAKE2b-256 | 13e2d6f25e4d2aff3695bced76840e408da3c86810e9a1280dd769beeb343a68 |
File details
Details for the file hf_chat-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: hf_chat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 687e10bde60d1e427f736dd94774293191c25851d177ad2059fff3067b134754 |
|
MD5 | 49f567bf4d85d84067b96d18841e0725 |
|
BLAKE2b-256 | 32e4c221c25bd2f1474df25817220c83e138edc2cd88116a66676525fa7b8032 |