Skip to content

tabiapp/MachineLearning

Repository files navigation

TABI Translation API

This API translates text from English to Indonesian using a pre-trained machine learning model. The service is hosted on Google Cloud Run for efficient, real-time translation.


Datasets and Model

Model

Datasets

Tokenizers


API Specification

Base URL

https://translate-api-65059410484.asia-southeast2.run.app

Endpoint: Translate Text

Request

Method: GET
URL: /translate

Query Parameters:

Parameter Type Required Description Example
text string Yes The text to translate (UTF-8) good morning

Response

Status Code: 200 OK

Content-Type: application/json

Response Body:

{
"input_text": "good morning",
"translated_text": "selamat pagi."
}

Example Usage

Using cURL

curl "https://translate-api-65059410484.asia-southeast2.run.app/translate?text=good%20morning"

Response:

{
"input_text": "good morning",
"translated_text": "selamat pagi."
}