Spaces:
Running on Zero
Running on Zero
Daryl Lim Claude Opus 4.6 (1M context) commited on
Commit ·
59c1004
1
Parent(s): cbc266a
docs: update README for 418 languages and dev setup
Browse filesUpdate description, test counts, and setup instructions to reflect
expanded language support. Add requirements-dev.txt to setup steps.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
README.md
CHANGED
|
@@ -8,12 +8,12 @@ sdk_version: 6.8.0
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
| 11 |
-
short_description: Translate
|
| 12 |
---
|
| 13 |
|
| 14 |
# MADLAD-400 Translate
|
| 15 |
|
| 16 |
-
Translate
|
| 17 |
|
| 18 |
## Requirements
|
| 19 |
|
|
@@ -27,6 +27,7 @@ Translate English text to 22 production-ready languages (BLEU 35+ both direction
|
|
| 27 |
uv venv --python 3.12
|
| 28 |
source .venv/bin/activate
|
| 29 |
uv pip install -r requirements.txt
|
|
|
|
| 30 |
python app.py
|
| 31 |
```
|
| 32 |
|
|
@@ -38,6 +39,6 @@ The Gradio interface launches at `http://localhost:7860`.
|
|
| 38 |
ruff check . # lint
|
| 39 |
ruff format . # format
|
| 40 |
ty check # type check
|
| 41 |
-
pytest -m "not slow" #
|
| 42 |
-
pytest # all
|
| 43 |
```
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
| 11 |
+
short_description: Translate between 418 languages.
|
| 12 |
---
|
| 13 |
|
| 14 |
# MADLAD-400 Translate
|
| 15 |
|
| 16 |
+
Translate between 418 languages from Table 9 (Section A.1) of Google's [MADLAD-400](https://arxiv.org/pdf/2309.04662) 3B model.
|
| 17 |
|
| 18 |
## Requirements
|
| 19 |
|
|
|
|
| 27 |
uv venv --python 3.12
|
| 28 |
source .venv/bin/activate
|
| 29 |
uv pip install -r requirements.txt
|
| 30 |
+
uv pip install -r requirements-dev.txt # dev tools
|
| 31 |
python app.py
|
| 32 |
```
|
| 33 |
|
|
|
|
| 39 |
ruff check . # lint
|
| 40 |
ruff format . # format
|
| 41 |
ty check # type check
|
| 42 |
+
pytest -m "not slow" # 38 fast tests
|
| 43 |
+
pytest # all 48 tests (slow require CUDA + model download)
|
| 44 |
```
|