Norelad commited on
Commit
2ec4e51
Β·
verified Β·
1 Parent(s): eec7369

Upload folder using huggingface_hub

Browse files
AUDIT_AND_RECOMMENDATIONS.md CHANGED
@@ -322,7 +322,7 @@ Remediation applied in v1.1.0 (2026-09-30 β†’ 2026-10-01):
322
  |---:|---|---|
323
  | 1 | **Blocker:** NLLB-200 Γ—4 (CC-BY-NC-4.0) loaded by the application | βœ… **Resolved.** All four checkpoints, the four `nllb_translator*.py` modules, `download_nllb_200.py`, and the NLLB fine-tuning pipeline were deleted. Apertus-8B (Apache-2.0) is the sole translation engine. `unified_translator.py` and `gradio_app.py` were refactored accordingly. |
324
  | 2 | **Blocker:** `datasets/romansh/train/*.arrow` derived from unlicensed `apertus-posttrain-romansh` | βœ… **Resolved.** The 33.5 MB derivative β€” 88% of the v1.0.0 Zenodo archive β€” was deleted. `scripts/download_romansh_dataset.py` is retained for users who wish to fetch the upstream dataset themselves. |
325
- | 3 | **Blocker:** MMS-TTS Γ—20 (CC-BY-NC-4.0) | πŸ”΄ **Open, by choice.** `tts_engine.py` is retained. The TTS feature is optional and is the *only* remaining non-commercial component. Replacing it with Piper (MIT) would clear this. |
326
  | 4 | **Blocker:** six models with no declared license | 🟑 **Open, but not shipped.** None are referenced by v1.1.0 translation code. The unlicensed arrow data derived from one of them has been removed. Research-hygiene item, not a distribution blocker. |
327
  | 5 | `megalaa` AGPL-3.0 models | 🟑 **Open, but not shipped.** Not referenced by v1.1.0 translation code; `apertus_trealla_hybrid.py` documents the external Coptic model location only. |
328
  | 6 | `coptic-dependency-parser` Zenodo CC-BY-4.0 vs in-repo CC BY-NC-SA 4.0 | πŸ”΄ **Open.** Belongs to a separate project. Relicensing that project to Apache-2.0 is planned as its own v1.1.0 and has not been published yet. |
 
322
  |---:|---|---|
323
  | 1 | **Blocker:** NLLB-200 Γ—4 (CC-BY-NC-4.0) loaded by the application | βœ… **Resolved.** All four checkpoints, the four `nllb_translator*.py` modules, `download_nllb_200.py`, and the NLLB fine-tuning pipeline were deleted. Apertus-8B (Apache-2.0) is the sole translation engine. `unified_translator.py` and `gradio_app.py` were refactored accordingly. |
324
  | 2 | **Blocker:** `datasets/romansh/train/*.arrow` derived from unlicensed `apertus-posttrain-romansh` | βœ… **Resolved.** The 33.5 MB derivative β€” 88% of the v1.0.0 Zenodo archive β€” was deleted. `scripts/download_romansh_dataset.py` is retained for users who wish to fetch the upstream dataset themselves. |
325
+ | 3 | **Blocker:** MMS-TTS Γ—20 (CC-BY-NC-4.0) | πŸ”΄ **Open, by choice.** `tts_engine.py` is retained. The TTS feature is optional and is the *only* remaining non-commercial component. Piper is now installed, but its engine is GPL-3.0-or-later and it covers only en/fr/es/de, so it does not clear this; a permissive all-language engine is still needed. |
326
  | 4 | **Blocker:** six models with no declared license | 🟑 **Open, but not shipped.** None are referenced by v1.1.0 translation code. The unlicensed arrow data derived from one of them has been removed. Research-hygiene item, not a distribution blocker. |
327
  | 5 | `megalaa` AGPL-3.0 models | 🟑 **Open, but not shipped.** Not referenced by v1.1.0 translation code; `apertus_trealla_hybrid.py` documents the external Coptic model location only. |
328
  | 6 | `coptic-dependency-parser` Zenodo CC-BY-4.0 vs in-repo CC BY-NC-SA 4.0 | πŸ”΄ **Open.** Belongs to a separate project. Relicensing that project to Apache-2.0 is planned as its own v1.1.0 and has not been published yet. |
MANIFEST.sha256 CHANGED
@@ -1,13 +1,13 @@
1
  e25c7c44cd1afcffcec0a7166a7a661a9365348586b72674f3362ade60372f64 .env.example
2
  c2de3d7ecc07d2a9459ef730a6241143dc1b60e822883761c31c1809381bbed7 .gitignore
3
  87d078982409b9a63f19df6872324c3d3e527719e97c174821066b02cd3cf141 .mailmap
4
- 3f8884b3e6f60de0b8150c6e564d680aacac61d6581f26d84cc861abf1137f2c AUDIT_AND_RECOMMENDATIONS.md
5
  1fcd10415773ffaa1624f8a1fd700f0a808ad5a4ce721894fa056c5e4f5bfbf8 DIRECTORY_STRUCTURE.txt
6
  2ec1769c86cac359a23ebd046bd791fcc4ea9fb79e334e19946523d787c5617a LICENSE
7
  8e11301b5e1fc7f69d173549bddbd54b3bf2fc9025782fb9d3c87c24abaa0934 QUICKSTART.md
8
- fa2714622c586e57e6ab3c57b24623059606e994a2c55c362778aaca0b873ff7 README.md
9
  99f81b665416310058fc41ec628272edf76318c38b7b9e428da43e63bc056ce7 SUPPORT.md
10
- ddcc724c0fbae2c6b4fd18ca5d534945e1e9ea95b46ca8a4f163d2f673c098eb THIRD-PARTY-NOTICES.md
11
  a151caf422d1c11fafdd20660c604005e423bbac1b3d18dbb1064d8e41a9172e apertus_translator.py
12
  583a4638cea90b9d2fe811cf4a791e2ef26098ae6246c56173223fee8e9fc558 apertus_trealla_hybrid.py
13
  d5958fbdb98970ff5f009bbc9dee719d8b4af7181da1ea9f15917972a6cdd8e5 app.py
@@ -47,7 +47,7 @@ ee6f34c99f5334352b28864c2da83757b91027d4bc6a0130d9ce5bdb786b66d0 docs/ROMANSH_G
47
  a2728cdd988c39ae18b68014bfac3750d990b8627a9c7c7f7a6a38ab95138d72 docs/SWISS_FRENCH_DATASET_GUIDE.md
48
  84b4031b4b887f778434fc426654282d3dae84d13a2e94072aeb106b79d3d7b2 docs/SWISS_FRENCH_QUICKSTART.md
49
  00c70fb49fc46242151e92f1c83baf8302c6fbbc97027d48cd3eeb88519a27f6 docs/SWISS_FRENCH_README.md
50
- ab636ffef7f41d457a580013d56073d92dd92fe4b994ca14c20a4855368ed7cc docs/WHISPER_INTEGRATION.md
51
  005c254ec43d9e08af4eaf34671fe36fd9033173131854da4da1088df76b966d elevenlabs_tts.py
52
  7600de54638715242dce97e89617969c3f3cfc292f8f03053d1d043661ae11bb glossary_parser/QUICK_START_TREALLA.md
53
  26b172482d6d9c369136dc9ac33ae2c05c723c3424b05e750e440df79c07406d glossary_parser/README.md
 
1
  e25c7c44cd1afcffcec0a7166a7a661a9365348586b72674f3362ade60372f64 .env.example
2
  c2de3d7ecc07d2a9459ef730a6241143dc1b60e822883761c31c1809381bbed7 .gitignore
3
  87d078982409b9a63f19df6872324c3d3e527719e97c174821066b02cd3cf141 .mailmap
4
+ d52eb43346242516696e48a00324e35ed987c95ad69becd901cbd2b0e8e9de3e AUDIT_AND_RECOMMENDATIONS.md
5
  1fcd10415773ffaa1624f8a1fd700f0a808ad5a4ce721894fa056c5e4f5bfbf8 DIRECTORY_STRUCTURE.txt
6
  2ec1769c86cac359a23ebd046bd791fcc4ea9fb79e334e19946523d787c5617a LICENSE
7
  8e11301b5e1fc7f69d173549bddbd54b3bf2fc9025782fb9d3c87c24abaa0934 QUICKSTART.md
8
+ ed0b4a4ddc981a2b52020b9a086bf62301e67c2e358e9011644a1d9813691421 README.md
9
  99f81b665416310058fc41ec628272edf76318c38b7b9e428da43e63bc056ce7 SUPPORT.md
10
+ 9c6a37d053e7df022ada233b7dba9e87f913b2da4cf7145b292074f02ed7a6ab THIRD-PARTY-NOTICES.md
11
  a151caf422d1c11fafdd20660c604005e423bbac1b3d18dbb1064d8e41a9172e apertus_translator.py
12
  583a4638cea90b9d2fe811cf4a791e2ef26098ae6246c56173223fee8e9fc558 apertus_trealla_hybrid.py
13
  d5958fbdb98970ff5f009bbc9dee719d8b4af7181da1ea9f15917972a6cdd8e5 app.py
 
47
  a2728cdd988c39ae18b68014bfac3750d990b8627a9c7c7f7a6a38ab95138d72 docs/SWISS_FRENCH_DATASET_GUIDE.md
48
  84b4031b4b887f778434fc426654282d3dae84d13a2e94072aeb106b79d3d7b2 docs/SWISS_FRENCH_QUICKSTART.md
49
  00c70fb49fc46242151e92f1c83baf8302c6fbbc97027d48cd3eeb88519a27f6 docs/SWISS_FRENCH_README.md
50
+ 15da45907011c99f5ea635216e6117e768f24754cc601ef8581347ca7c5a27f9 docs/WHISPER_INTEGRATION.md
51
  005c254ec43d9e08af4eaf34671fe36fd9033173131854da4da1088df76b966d elevenlabs_tts.py
52
  7600de54638715242dce97e89617969c3f3cfc292f8f03053d1d043661ae11bb glossary_parser/QUICK_START_TREALLA.md
53
  26b172482d6d9c369136dc9ac33ae2c05c723c3424b05e750e440df79c07406d glossary_parser/README.md
README.md CHANGED
@@ -22,8 +22,14 @@ A multilingual translation system that runs entirely on your computer. No intern
22
 
23
  ---
24
 
 
 
 
 
 
 
25
  **πŸ“‹ License**: [MIT License](LICENSE) for the source code β€’ Translation engine is
26
- Apache-2.0 (commercial use permitted) β€’ ⚠️ optional TTS uses CC-BY-NC-4.0, see
27
  [License](#-license) β€’ [Third-Party Notices](THIRD-PARTY-NOTICES.md) β€’ [Support](SUPPORT.md)
28
 
29
  ---
@@ -193,20 +199,24 @@ retained. See [LICENSE](LICENSE) for full terms.
193
 
194
  ### ⚠️ Third-party model components: NOT uniformly permissive
195
 
196
- **The MIT license covers TraductAL's own code only. The application as shipped also
197
- loads third-party models, which carry their own terms.** Several of these are
198
- **non-commercial**, which means the *complete application* is currently restricted to
199
- non-commercial use even though the code is MIT.
 
200
 
201
  | Component | License | Commercial use |
202
  |---|---|---|
203
- | Apertus-8B (base + Instruct) | Apache-2.0 | βœ… Permitted |
204
- | Whisper / wav2vec2 (Romansh) | Apache-2.0 | βœ… Permitted |
205
- | m2m100, bart-large-cnn, DialoGPT | MIT | βœ… Permitted |
206
- | MT5-base, T5-base, BERT-mul, ELECTRA | Apache-2.0 | βœ… Permitted |
207
- | opus-mt (6 models) | Apache-2.0 | βœ… Permitted |
208
- | opus-mt (2 models) | CC-BY-4.0 | βœ… With attribution |
209
- | **MMS-TTS** (20 models) | **CC-BY-NC-4.0** | ❌ **Non-commercial only** |
 
 
 
210
 
211
  Fine-tuning a CC-BY-NC model does **not** remove the non-commercial restriction;
212
  derivative checkpoints inherit it.
@@ -224,9 +234,13 @@ lost except NLLB's faster small-model path on mainstream pairs.
224
  **Remaining non-commercial component: MMS-TTS**, used only for text-to-speech.
225
  Translation and speech-to-text (Whisper, Apache-2.0) are fully permissive.
226
 
227
- If you do not need text-to-speech, the translation stack alone is Apache-2.0 and
228
- commercial use is permitted. For a fully permissive TTS, see
229
- [THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md) Β§3 on substituting Piper (MIT).
 
 
 
 
230
 
231
  ### πŸ’ Supporting Development
232
 
 
22
 
23
  ---
24
 
25
+ > ⚠️ **Commercial use:** the *code* is MIT and the *translation model* is Apache-2.0,
26
+ > so those parts are free for commercial use. **The application as shipped is not** β€”
27
+ > text-to-speech falls back to Facebook MMS-TTS weights (**CC-BY-NC-4.0**) for the 24
28
+ > languages Piper does not cover, and the Piper engine itself is **GPL-3.0**.
29
+ > See [License](#-license) before deploying commercially.
30
+
31
  **πŸ“‹ License**: [MIT License](LICENSE) for the source code β€’ Translation engine is
32
+ Apache-2.0 (commercial use permitted) β€’ ⚠️ TTS is CC-BY-NC-4.0 / GPL-3.0, see
33
  [License](#-license) β€’ [Third-Party Notices](THIRD-PARTY-NOTICES.md) β€’ [Support](SUPPORT.md)
34
 
35
  ---
 
199
 
200
  ### ⚠️ Third-party model components: NOT uniformly permissive
201
 
202
+ **The MIT license covers TraductAL's own code only.** The application as shipped also
203
+ loads third-party software and weights under their own terms. The **translation** and
204
+ **speech-to-text** paths are fully permissive (Apache-2.0). **Text-to-speech is not**: it
205
+ depends on a GPL-3.0 engine and falls back to CC-BY-NC-4.0 weights, so the *complete
206
+ application as shipped* is restricted to non-commercial use even though the code is MIT.
207
 
208
  | Component | License | Commercial use |
209
  |---|---|---|
210
+ | TraductAL source code | MIT | βœ… Permitted |
211
+ | **Apertus-8B-Instruct-2509** β€” sole translation engine | Apache-2.0 | βœ… Permitted |
212
+ | `openai/whisper-base` + `openai-whisper` (speech-to-text) | Apache-2.0 / MIT | βœ… Permitted |
213
+ | `piper-tts` β€” Piper TTS engine | **GPL-3.0-or-later** | ⚠️ Copyleft; commercial use permitted |
214
+ | `rhasspy/piper-voices` β€” Piper voice models (16) | MIT | βœ… Permitted |
215
+ | **MMS-TTS** β€” TTS fallback for 24 languages | **CC-BY-NC-4.0** | ❌ **Non-commercial only** |
216
+
217
+ The Zenodo archive ships **source only** β€” no model weights and no Piper code.
218
+ All weights are downloaded at runtime, and Piper is installed from PyPI as an
219
+ ordinary dependency invoked as a separate process.
220
 
221
  Fine-tuning a CC-BY-NC model does **not** remove the non-commercial restriction;
222
  derivative checkpoints inherit it.
 
234
  **Remaining non-commercial component: MMS-TTS**, used only for text-to-speech.
235
  Translation and speech-to-text (Whisper, Apache-2.0) are fully permissive.
236
 
237
+ If you do not need text-to-speech, the translation and speech-to-text stacks are
238
+ Apache-2.0 and commercial use is permitted.
239
+
240
+ For commercial deployment you must replace the TTS layer entirely. Note that **Piper is
241
+ not the answer**: `piper-tts` is **GPL-3.0-or-later** (the older `rhasspy/piper` project
242
+ was MIT, but the current package is not), and it covers only English, French, German and
243
+ Spanish. Use an Apache-2.0/MIT engine with per-language coverage, or remove TTS.
244
 
245
  ### πŸ’ Supporting Development
246
 
RELEASE-MANIFEST.json CHANGED
@@ -4,7 +4,7 @@
4
  "archive_label": "TraductAL-v1.1.0",
5
  "generated": "2026-10-02",
6
  "file_count": 101,
7
- "uncompressed_bytes": 4450819,
8
  "translation_engine": {
9
  "model": "swiss-ai/Apertus-8B-Instruct-2509",
10
  "license": "Apache-2.0",
 
4
  "archive_label": "TraductAL-v1.1.0",
5
  "generated": "2026-10-02",
6
  "file_count": 101,
7
+ "uncompressed_bytes": 4453107,
8
  "translation_engine": {
9
  "model": "swiss-ai/Apertus-8B-Instruct-2509",
10
  "license": "Apache-2.0",
THIRD-PARTY-NOTICES.md CHANGED
@@ -5,6 +5,9 @@ Generated from a full audit of the local model cache (`~/.cache/huggingface/hub`
5
  TraductAL's own source (`*.py`, `*.sh`, `*.json`; excluding `.venv/` and backups).
6
 
7
  **Audit date:** 2026-09-30 Β· **Updated for v1.1.0** (NLLB-200 removed)
 
 
 
8
  **Scope:** model weights, datasets, and software dependencies.
9
 
10
  ---
@@ -37,12 +40,19 @@ component is **MMS-TTS**, used solely for optional text-to-speech.
37
  | Path | Licenses | Commercial use |
38
  |---|---|---|
39
  | Translation (Apertus-8B) | Apache-2.0 | βœ… **Yes** |
40
- | Speech-to-text (Whisper, wav2vec2) | Apache-2.0 | βœ… **Yes** |
41
  | Symbolic validation (Trealla) | MIT | βœ… **Yes** |
42
- | Text-to-speech (MMS-TTS) | CC-BY-NC-4.0 | ❌ **No** |
43
-
44
- Substituting a permissively-licensed TTS engine (e.g. Piper, MIT) makes the entire
45
- application commercially usable. See Β§5.
 
 
 
 
 
 
 
46
 
47
  ---
48
 
@@ -178,8 +188,10 @@ manageable but not automatic; a NOTICE file is the right mitigation.
178
  **Outstanding:**
179
 
180
  3. πŸ”΄ **Replace MMS-TTS with a permissive TTS engine** to make the whole application
181
- commercially usable. Piper (`rhasspy/piper-voices`) is MIT and already present in
182
- your working tree as `piper_tts.py`.
 
 
183
  4. πŸ”΄ **Obtain licenses for the six undeclared models, or remove them.** Priority:
184
  `chaouin/coptic-french-translation-helsinki`. Note: none are referenced by v1.1.0
185
  translation code, so this is a research-hygiene item rather than a shipping blocker.
 
5
  TraductAL's own source (`*.py`, `*.sh`, `*.json`; excluding `.venv/` and backups).
6
 
7
  **Audit date:** 2026-09-30 Β· **Updated for v1.1.0** (NLLB-200 removed)
8
+ **Re-verified 2026-10-02:** Piper engine licence (now GPL-3.0-or-later, was recorded as
9
+ MIT), plus the licences of `swiss-ai/Apertus-8B-Instruct-2509`, `openai/whisper-base` and
10
+ `facebook/mms-tts-*`.
11
  **Scope:** model weights, datasets, and software dependencies.
12
 
13
  ---
 
40
  | Path | Licenses | Commercial use |
41
  |---|---|---|
42
  | Translation (Apertus-8B) | Apache-2.0 | βœ… **Yes** |
43
+ | Speech-to-text (`openai/whisper-base`) | Apache-2.0 | βœ… **Yes** |
44
  | Symbolic validation (Trealla) | MIT | βœ… **Yes** |
45
+ | Text-to-speech β€” Piper engine | GPL-3.0-or-later | ⚠️ Copyleft; **Yes** (commercial use allowed) |
46
+ | Text-to-speech β€” Piper voices (`rhasspy/piper-voices`) | MIT | βœ… **Yes** |
47
+ | Text-to-speech β€” MMS-TTS fallback | CC-BY-NC-4.0 | ❌ **No** |
48
+
49
+ ⚠️ **Substituting Piper does *not* make the whole application commercially usable.**
50
+ Re-verified 2026-10-02: the `piper-tts` package on PyPI is **GPL-3.0-or-later**
51
+ (`OHF-voice/piper1-gpl`), *not* MIT as an earlier draft of this file stated β€” the old
52
+ `rhasspy/piper` project was MIT, but the current package is not. GPL permits commercial
53
+ use but is copyleft. Separately, Piper ships voices for **English, French, German and
54
+ Spanish only**, so the CC-BY-NC-4.0 MMS-TTS fallback remains reachable for the other 24
55
+ languages. See Β§5.
56
 
57
  ---
58
 
 
188
  **Outstanding:**
189
 
190
  3. πŸ”΄ **Replace MMS-TTS with a permissive TTS engine** to make the whole application
191
+ commercially usable. Piper is now installed on the Space as `piper-tts==1.4.2` and
192
+ supplies 16 voices (en/fr/es/de), but the engine is **GPL-3.0-or-later** and the other
193
+ 24 languages still fall through to CC-BY-NC-4.0 MMS-TTS. A genuinely permissive,
194
+ all-language TTS engine is still required.
195
  4. πŸ”΄ **Obtain licenses for the six undeclared models, or remove them.** Priority:
196
  `chaouin/coptic-french-translation-helsinki`. Note: none are referenced by v1.1.0
197
  translation code, so this is a research-hygiene item rather than a shipping blocker.
docs/WHISPER_INTEGRATION.md CHANGED
@@ -244,14 +244,14 @@ source .venv/bin/activate
244
 
245
  ### Licensing
246
 
247
- **Whisper Model**:
248
- - License: MIT (fully open-source)
249
  - Developer: OpenAI
250
  - Released: September 2022
251
  - No account required, no usage limits
252
 
253
  **No OpenAI account needed** - despite being developed by OpenAI, Whisper is:
254
- - Fully open-source (MIT license)
255
  - Available on Hugging Face
256
  - Runs entirely offline
257
  - No API key or account required
 
244
 
245
  ### Licensing
246
 
247
+ **Whisper Model** (`openai/whisper-base`):
248
+ - License: **Apache-2.0** for the weights; the `openai-whisper` package itself is MIT
249
  - Developer: OpenAI
250
  - Released: September 2022
251
  - No account required, no usage limits
252
 
253
  **No OpenAI account needed** - despite being developed by OpenAI, Whisper is:
254
+ - Fully open-source (Apache-2.0 weights, MIT package)
255
  - Available on Hugging Face
256
  - Runs entirely offline
257
  - No API key or account required