Translate/Chat via qwen-7b huggingface api
Project description
qwen7b-tr
Translate/Chat using a qwen-7b-chat API at huggingface
Install it
pip install qwen7b-tr
# pip install git+https://github.com/ffreemt/qwen7b-tr
# poetry add git+https://github.com/ffreemt/qwen7b-tr
# git clone https://github.com/ffreemt/qwen7b-tr && cd qwen7b-tr
Use it
from qwen7b_tr.__main__ import qwen7b_tr
# This is in fact just chat with the qwen-7b-chat model
print(qwen7b_tr("你好"))
# 你好!有什么我能帮助你的吗?
From command line
python -m qwen7b_tr test abc
# or qwen7b-tr test abc
三个版本如下:
1. 测试abc
2. ABC测试
3. 三号测试 ABC
Help and Manual
python -m qwen7b_tr --help
# or
qwen7b-tr --help
Develop and Debug
set LOGURU_LEVEL=TRACE
# or in linux
export LOGURU_LEVEL=TRACE
to see a lot of debug messages
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
qwen7b_tr-0.1.0a2.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for qwen7b_tr-0.1.0a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5114dec958f8cf5f9a297dd6c9de31a8fe3da813d700a8c49cf120e9d804e6a |
|
MD5 | 819708565d95622b150009ed3aa4810f |
|
BLAKE2b-256 | deb756b44ae4c67110bf4566ea2ccc8c38ff6a60fc244806bb8da69a4200c640 |