Skip to content

This is a text translation service built with fast-api, which uses the t5-base model to translate text between 4 languages.

Notifications You must be signed in to change notification settings

enoch-baffoe/Text-Translation-Service-Using-t5-base-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Translation service using T5-base model

This is a text translation service using the t5-base model from huggingface The api service is built using Fastapi

Features

  • Translate text among 4 languages namely
    • English
    • French
    • German
    • Romanian

Documentation

After running the app, the documentation is available at the "/docs" endpoint

Hardware Requirements

Minimum hardware requirements CPU: 4GB RAM DISK: 2GB

Run Locally

You need to have in order to successfully run the project.

Clone the project

  git clone the-project

Go to the project directory

  cd Text-Translation-Service-Using-t5-base-model

Install dependencies

   poetry install

Start the server

  poetry run uvicorn main:app --host 0.0.0.0 --port 80

Deployment

To deploy the project,

  1. Build the image with
  $ docker build . -t t5-base-api-service
  1. Then run it in a container
  $ docker run --publish 80:80 t5-base-api-service   

Using dockerhub

Alternately, the image can be pulled from docker hub

  1. Pull the image
  docker pull peprah/t5-base-api-service:latest   
  1. Run in container
  $ docker run --publish 80:80 peprah/t5-base-api-service  

About

This is a text translation service built with fast-api, which uses the t5-base model to translate text between 4 languages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published