tlkhoa/doctruyen
0
DocTruyen Translation API
FastAPI service for Qwen2.5-1.5B-Instruct model for translation.
API Endpoints
POST /translate: Translate textGET /health: Health checkGET /docs: Interactive API documentation
Example Request
import requests
response = requests.post(
"https://tlkhoa-doctruyen.hf.space/translate",
json={
"text": "Hello world",
"target_lang": "vi"
}
)
print(response.json())