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.0a0.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for qwen7b_tr-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57038afe879a70b680ebd9944b0edf54035c91c57f8923d8d49cf4bd64a2e679 |
|
MD5 | a7ea882ded6c4739006ea9943828cc2f |
|
BLAKE2b-256 | 4ab5edac18d041a8f872513bb0ba92873dbd64a91dd2021e331dec55000a7977 |