Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/watchakorn-18k/language-translation-app-using-ai

🌍 Language Translation App using AI 🗣️ Real-time translation for Thai & English using CHATGPT , BING CHAT and Gemini . Easy-to-use interface.
https://github.com/watchakorn-18k/language-translation-app-using-ai

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

Last synced: 2 days ago
JSON representation

🌍 Language Translation App using AI 🗣️ Real-time translation for Thai & English using CHATGPT , BING CHAT and Gemini . Easy-to-use interface.

Awesome Lists containing this project

README

        

# 🌍 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/](https://beta.openai.com/), then save and close the file.
![img](https://cdn.discordapp.com/attachments/585068497495654413/1067831416995455067/gamedfdsf.gif)
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](https://github.com/acheong08/EdgeGPT#checking-access-required)
- Install the cookie editor extension for [Chrome](https://chrome.google.com/webstore/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/cookie-editor/)
- 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`
```diff
- 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](https://github.com/acheong08/EdgeGPT/blob/master/docs/README.md#getting-authentication-required).

## How to use Gemini

- get API key for the Gemini go to https://aistudio.google.com/app/apikey"
- Copy the values
- Paste it into a file `api_gemini.json`

Example `cookies_bard.json`
```diff
- {"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](https://github.com/ianzhao05/textshot/blob/master/textshot/textshot.py)

## 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