harshil-code commited on
Commit
8c052f7
Β·
1 Parent(s): 1254df0

Fix README filename and update documentation

Browse files
Files changed (1) hide show
  1. README.md +37 -8
README.md CHANGED
@@ -1,11 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
- title: Nllb Translation Api
3
- emoji: 😻
4
- colorFrom: gray
5
- colorTo: pink
6
- sdk: docker
7
- pinned: false
8
- short_description: 'translate english to arebic '
 
 
9
  ---
10
 
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
1
+ # 🌍 NLLB Arabic Translation API
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
+ }