Skip to content

Gradio AI Transformer Translator used meta/nllb-200-distilled-600M

License

Notifications You must be signed in to change notification settings

sioaeko/NLLB_translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NLLB_translator

캡처

Gradio Transformer Translator using Facebook's NLLB-200-distilled-600M model.

Model info : Hugging Face

Demo on Hugging Face Demo Space

GitHub GitHub stars GitHub forks

Overview

This project provides an AI translator that supports 200 languages using the NLLB (No Language Left Behind) model by Meta, which contains 600 million parameters. The application features a user-friendly interface built with Gradio, allowing users to input text and receive translations seamlessly.

Features

  • Multi-language Support: Translate between 200 languages.
  • Web Interface: Utilize Gradio for easy text translation via a web interface.
  • External Access: Use Ngrok tunneling for accessing the translator from external URLs.
  • Versatile Usage: Available as a Python script for various environments.
  • Notebook Integration: Supports Jupyter Notebooks, making it compatible with Runpod and Google Colab.

Installation

  1. Clone the repository:
    git clone https://github.com/sioaeko/NLLB_translator.git
    
  2. Install the required dependencies:
    pip install -r requirements.txt

Usage

Using Python Script

Run the translator using the Python script:

python app.py

Using Jupyter Notebook

Open and run the NLLB_translator.ipynb notebook in Jupyter or Colab for an interactive experience.

Contributing

Feel free to submit issues and pull requests. Contributions are welcome!

Project Tree

NLLB_translator/
├── .github/
│   └── workflows/
│       └── python-app.yml  # GitHub Actions Setting file
├── models/
│   └── nllb_model.py       # Model file ( Example )
├── tests/
│   └── test_translator.py  # 테스트 파일
├── .gitignore
├── LICENSE
├── README.md
├── main.py                 
├── requirements.txt        # Python Dependency file
├── app.py                  # Main Application file
└── setup.sh                # install script file

License

This project is licensed under the MIT License. For more information, see LICENSE file.