DEV Community

Cover image for Language-Translation-App-using-CHATGPT
watchakorn-18k
watchakorn-18k

Posted on

Language-Translation-App-using-CHATGPT

🌍 Language Translation App using CHATGPT 🗣️

Language Translation

OCR (Optical Character Recognition)

Example

This app utilizes the power of the CHATGPT language model to provide real-time translation of text input in Thai and English.

  • Support for Thai and English languages
  • Easy-to-use interface

How to use

  1. Run Application 1 time
  2. Then go to file apikey.json and insert the API KEY, get it from https://beta.openai.com/, then save and close the file. img
  3. Run Application
  4. Enter text in any language in the text field.
  5. Press the button to get the translated text

OCR (Optical Character Recognition)

can be used to extract text from images or scanned documents, including text on the screen. Currently, our OCR system supports two languages: Chinese and English.

NOTE: You can press the keyboard shortcut Ctrl + Shift + Z to perform OCR.

Installation

  1. Make sure you have Python 3 installed on your system
  2. Clone the repository or download the zip file
  3. Run the command pip install -r requirements.txt to install the necessary dependencies
  4. Run the app with the command python app.py

Development

This app is open-source and can be further developed. Feel free to make pull requests or suggest new features.

Build

pyinstaller app.spec
Enter fullscreen mode Exit fullscreen mode

Technical details

The app is built using the OpenAI's CHATGPT model, which is a powerful language generation model. It uses the Hugging Face's transformers library to fine-tune the model and make it work for our specific use case.

Credis

Snipper source code from textshot

IMPORTANT: Remember to enter your API key for the CHATGPT model before running the app in file apikey.json

source code : https://github.com/watchakorn-18k/Language-Translation-App-using-CHATGPT

Top comments (0)