Giter Site home page Giter Site logo

watchakorn-18k / language-translation-app-using-ai Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 4.0 119 KB

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

Python 100.00%
chatgpt-api flet-dev github nltk-python repository thailand wk-18k languagetranslationapp bing-chat gpt-4

language-translation-app-using-ai's Introduction

๐ŸŒ 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.1 changelog:
    • Add support for Gemini
    • Remove Bard API
    • Add snapshot support turkish
    • Update modules
  • 1.0 Initial release

language-translation-app-using-ai's People

Contributors

watchakorn-18k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

language-translation-app-using-ai's Issues

Turkish Language PLZ

Hello,

Thank you for the project. I wanna use it to translate texts in the game that I play in English. Can you add Turkish language too please?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.