CoolFace
Apppublic

tlkhoa/doctruyen

sourceHugging Facemitupdated 8mo agoView on Hugging Face
0likes
App README

DocTruyen Translation API

FastAPI service for Qwen2.5-1.5B-Instruct model for translation.

API Endpoints

  • POST /translate: Translate text
  • GET /health: Health check
  • GET /docs: Interactive API documentation

Example Request

python
import requests

response = requests.post(
    "https://tlkhoa-doctruyen.hf.space/translate",
    json={
        "text": "Hello world",
        "target_lang": "vi"
    }
)
print(response.json())