Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arshitarora/english-hinglish
https://github.com/arshitarora/english-hinglish
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/arshitarora/english-hinglish
- Owner: ArshitArora
- Created: 2023-10-30T11:50:26.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-31T05:19:53.000Z (about 1 year ago)
- Last Synced: 2024-09-18T10:49:17.055Z (4 months ago)
- Language: Python
- Size: 13.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# English-Hinglish - Translator
- Completed the task with 2 different methods
1) Using Open-Ai's API
2) Tradional ML Model Trained Using Dataset- Found A Dataset online for English To Hinglish at [https://huggingface.co/datasets/findnitai/english-to-hinglish/tree/main](English-to-Hinglish)
## Open-Ai approach
1. Clone this repository:
```bash
git clone https://github.com/Delicate-Jerk/English-Hinglish.git
cd english-to-hinglish
```2. Install the required Python packages:
```bash
pip install openai gradio
```3. Set up your OpenAI API key:
- Replace the `api_key` variable in the `openai-src` file with your OpenAI API key.### Running the Translator
1. To run the translator in the terminal:
- Uncomment the code in `openai-src.py` within the section marked for terminal use.
- Execute the script using:
```bash
python openai-src.py
```2. Using the Graphical User Interface (GUI):
- Launch the graphical interface by executing the following command in the terminal:
```bash
python openai-src.py
```
- This will open a web browser window where you can input English text and get the corresponding Hinglish translation.### Input and Output
- The code allows you to input English text and receive the translated Hinglish text either through the terminal or a graphical user interface.## For the Tradional ML Approach
- Just install the latest version of required dependiciies and run the code by replacing the path to the dataset with `hinglish_upload_v1.json`
```bash
python ml-src.py
```