Translating-Machine
A Machine that translates from the language of questions to the language of answers.
In order to launch it from the command line or as a Python subprocess:
echo "Theodotos-Alexandreus: Are language models seeking the Truth, machine?" \
| uvx translating-machine \
--provider-api-key=sk-proj-... \
--github-token=ghp_...
Or, with a local pip installation:
pip install translating-machine
Set the environment variables:
export PROVIDER_API_KEY="sk-proj-..."
export GITHUB_TOKEN="ghp_..."
Then:
translating-machine multilogue.txt
Or:
translating-machine multilogue.txt new_turn.txt
Or:
cat multilogue.txt | translating-machine
Or:
cat multilogue.txt | translating-machine > tmp && mv tmp multilogue.txt
Or:
(cat multilogue.txt; echo:"Theodotos: What do you think, Translating-Machine?") \
| translating-machine
Or:
cat multilogue.txt new_turn.txt | translating-machine
Or:
cat multilogue.txt new_turn.txt | translating-machine > tmp && mv tmp multilogue.txt
Or, if you have installed other machines:
cat multilogue.md | translating-machine \
| summarizing-machine | judging-machine > summary_judgment.md
Or use it in your Python code:
# Python
import translating_machine
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
translating_machine-0.0.1.tar.gz
(15.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file translating_machine-0.0.1.tar.gz.
File metadata
- Download URL: translating_machine-0.0.1.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
333e4220e24afbf9b41c1bfd1f81002927267a562787004bccb076e9e1f55751
|
|
| MD5 |
10d1e7d30bc338bc228400a5a504e2da
|
|
| BLAKE2b-256 |
78757d9c041d56f76874f458fdb5b98ba25095e162b6c4afbac6a661ca6c99dc
|
File details
Details for the file translating_machine-0.0.1-py3-none-any.whl.
File metadata
- Download URL: translating_machine-0.0.1-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b0da439105c937d9fcfc894092c2df762f7abf27900b514013b87c7cd23bebd
|
|
| MD5 |
2a8ad6d6b74629395be5695b7d373c39
|
|
| BLAKE2b-256 |
09ba59eceb6d52657044b8a400861d055b59481317b099026624134de3c220c4
|