Skip to content

This application was build with fast API and python to communicate with T5-base model and translate among 4 languages, i.e. English, French, Romanian, German.

Notifications You must be signed in to change notification settings

Emmanuel-Okyere/t5_base_model_fast_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

T5-base Model and Fast API

What is the t5 base model

The model t5 base is a Natural Language Processing (NLP) Model implemented in Transformer library, generally using the Python programming language used for text-text translations.

For more information about the model, visit https://huggingface.co/t5-base

Installation

Fork the project at https://github.com/Emmanuel-Okyere/shoppharma.git

  ├── README.md
  ├── pyproject.toml *** the package manager. 
  ├── poetry.lock *** poetry
  ├── Dockerfile *** Docker file
  ├── pyproject *** main application folder
        ├── api
        │     ├── translation.py
        |   schemes
        |     ├── translation.py 
        |   core
        |     ├── config.py ***setting for the application
        |   translate_service.py *** helper function for the application
        └── main.py *** driver for the application
  

Building with Docker in the forked directory


docker build -t myimage .
docker run -d --name mycontainer -p 80:80 myimage

Building with Poetry in the forked directory

pip install poetry
poetry intall
unicorn pyproject.main:app

Navigate to http://127.0.0.1:8000/

Note On startup, the t5-base model would be downloaded.

The application was developed with a 24GB RAM and 1.80GHz CPU Speed.

Visuals

Home Page Home Page Home Page

About

This application was build with fast API and python to communicate with T5-base model and translate among 4 languages, i.e. English, French, Romanian, German.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published