DUB-AI: multi-task модель (тип озвучки + автор-спан + 18+), обучение/инференс/ONNX/сервис, тесты и документация

This commit is contained in:
DUB-AI committed 2026-10-27 16:43:36 +07:00
commit 8dbca3f4a3
2873 files changed
+44479

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
# Примеры интеграции
Подробности — в [docs/integration.md](../docs/integration.md).
| Каталог | Язык | Путь | Что делает |
|---|---|---|---|
| `typescript/predict.mjs` | Node.js >= 18 | HTTP | CLI-клиент сервиса: `--text` / `--html`, без зависимостей |
| `typescript/predict.ts` | TypeScript | HTTP | то же с типами (`npx tsx predict.ts --text "..."`) |
| `typescript/onnx_local.mjs` | Node.js | ONNX | локальный инференс без Python (`onnxruntime-node` + `@huggingface/transformers`) |
| `rust/http_client` | Rust | HTTP | `cargo run -- --text "..."` / `--html файл` (reqwest + tokio) |
| `rust/onnx_local` | Rust | ONNX | локальный инференс (`ort` + `tokenizers`) |
Перед путём А запустите сервис:
```bash
python -m src.service --model models/best --port 8000
```
Перед путём Б экспортируйте модель:
```bash
python -m src.export_onnx # -> models/best-onnx
```