Initial local translation API with persistent projects and batch jobs
This commit is contained in:
commit
13492929c6
21 files changed
+1624
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
|
||||
if [[ ! -x .venv/bin/python ]]; then
|
||||
python3 -m venv .venv
|
||||
fi
|
||||
if [[ ! -f .venv/translator-installed ]]; then
|
||||
.venv/bin/python -m pip install -e .
|
||||
touch .venv/translator-installed
|
||||
fi
|
||||
if [[ ! -f config.toml ]]; then
|
||||
cp config.example.toml config.toml
|
||||
fi
|
||||
exec .venv/bin/python -m local_translator --config "$PWD/config.toml"
|
||||
Reference in new issue
Block a user