Flatten package layout and add Gitea CI
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
Local CLI that forwards media files to a remote `whisper-remote-backend` server.
|
||||
|
||||
Package layout is flat in this folder: `whisper_remote_cli/main.py`.
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
@@ -10,4 +12,11 @@ export WHISPER_REMOTE=http://127.0.0.1:8000
|
||||
whisper-remote ./audio.mp3 --model base --language en --output-format txt
|
||||
```
|
||||
|
||||
Use `--to-file` to save the returned transcript locally.
|
||||
PowerShell:
|
||||
|
||||
```powershell
|
||||
$env:WHISPER_REMOTE = "http://127.0.0.1:8000"
|
||||
whisper-remote .\audio.mp3 --model base --language en --output-format txt
|
||||
```
|
||||
|
||||
Use `--to-file` to save the returned transcript locally. Without it, the CLI prints the transcript body to stdout.
|
||||
|
||||
@@ -19,9 +19,3 @@ dev = [
|
||||
|
||||
[project.scripts]
|
||||
whisper-remote = "whisper_remote_cli.main:main"
|
||||
|
||||
[tool.setuptools]
|
||||
package-dir = {"" = "src"}
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["src"]
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
SRC = ROOT / "src"
|
||||
|
||||
if str(SRC) not in sys.path:
|
||||
sys.path.insert(0, str(SRC))
|
||||
Reference in New Issue
Block a user