Skip to main content

Translate/Chat via qwen-7b huggingface api

Project description

qwen7b-tr

pytestpythonCode style: blackLicense: MITPyPI version

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


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)

Uploaded Source

Built Distribution

qwen7b_tr-0.1.0a2-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

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