Skip to content

๐ŸŒ Language Translation App using AI ๐Ÿ—ฃ๏ธ Real-time translation for Thai & English using CHATGPT , BING CHAT and Gemini . Easy-to-use interface.

Notifications You must be signed in to change notification settings

watchakorn-18k/Language-Translation-App-using-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

56 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ Language Translation App using CHATGPT , BING CHAT and Gemini ๐Ÿ—ฃ๏ธ

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 api_key_chatgpt.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

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

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.

Settings Menu

How to use Bing Chat

  • Checking access (Required) here
  • Install the cookie editor extension for Chrome or Firefox
  • Go to bing.com
  • Open the extension
  • Click "Export" on the bottom right, then "Export as JSON" (This saves your cookies to clipboard)
  • Paste your cookies into a file cookies_bing_chat.json

Example cookies_bing_chat.json

- You can see more https://github.com/watchakorn-18k/Language-Translation-App-using-CHATGPT#how-to-use-bing-chat

+ [
+    {
+        "domain": ".bing.com",
+        "expirationDate": ..............

You can see more here.

How to use Gemini

Example cookies_bard.json

- {"api_key": "get API key for the Gemini go to https://aistudio.google.com/app/apikey"}

+ {"api_key": "AIza................................"}

Installation

  1. Make sure you have Python 3 installed on your system
  2. Install package pip install fenv
  3. Clone the repository and create virtualenv with fenv clone https://github.com/watchakorn-18k/Language-Translation-App-using-CHATGPT
  4. Run the app with the command python app.py of flet 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

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.

Credit

Snipper source code from textshot

Changelog

  • 1.2 changelog:
    • Change prompt Gemini new
    • Change prompt ChatGPT new
    • Remove ChatGPTFREE
    • can select model generative ai
    • Update modules
  • 1.1 changelog:
    • Add support for Gemini
    • Remove Bard API
    • Add snapshot support turkish
    • Update modules
  • 1.0 Initial release

About

๐ŸŒ Language Translation App using AI ๐Ÿ—ฃ๏ธ Real-time translation for Thai & English using CHATGPT , BING CHAT and Gemini . Easy-to-use interface.

Topics

Resources

Stars

Watchers

Forks

Languages