Spaces:
Sleeping
Sleeping
Commit Β·
22ef918
1
Parent(s): 8c052f7
docs: Replace comprehensive README content with a brief placeholder.
Browse files
README.md
CHANGED
|
@@ -1,40 +1 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
A FastAPI-based AI translation service powered by **Metaβs NLLB-200 model**.
|
| 4 |
-
This API translates English text into **Arabic** and can be consumed by any application (Node.js, frontend, mobile, backend).
|
| 5 |
-
|
| 6 |
-
π Hosted on **Hugging Face Spaces**
|
| 7 |
-
π§ Model: `facebook/nllb-200-distilled-600M`
|
| 8 |
-
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
## β¨ Features
|
| 12 |
-
|
| 13 |
-
- β
High-quality neural machine translation
|
| 14 |
-
- β
FastAPI REST API
|
| 15 |
-
- β
Dockerized & production-ready
|
| 16 |
-
- β
Public HTTPS endpoint
|
| 17 |
-
- β
Works with Node.js, Python, frontend apps
|
| 18 |
-
- β
Automatically uses GPU if available
|
| 19 |
-
|
| 20 |
-
---
|
| 21 |
-
|
| 22 |
-
## π οΈ Tech Stack
|
| 23 |
-
|
| 24 |
-
- **FastAPI**
|
| 25 |
-
- **Hugging Face Transformers**
|
| 26 |
-
- **PyTorch**
|
| 27 |
-
- **Docker**
|
| 28 |
-
- **NLLB-200 (Distilled)**
|
| 29 |
-
|
| 30 |
-
---
|
| 31 |
-
|
| 32 |
-
## π‘ API Endpoint
|
| 33 |
-
|
| 34 |
-
### `POST /translate`
|
| 35 |
-
|
| 36 |
-
**Request Body**
|
| 37 |
-
```json
|
| 38 |
-
{
|
| 39 |
-
"text": "Hello world"
|
| 40 |
-
}
|
|
|
|
| 1 |
+
Hi Python, translation api
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|