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.0a1.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for qwen7b_tr-0.1.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42b9e0371e0de826fed8716246903c577bc0ff53b45e01a225480c5221fb69e0 |
|
MD5 | 6f30bbeda12af30eda2e6841bb0d7a5a |
|
BLAKE2b-256 | 3ea36973e5d148bbbfd5afe3082cda86a8743fb14ee4c1c8858d30238239a989 |