Skip to content

yash2002vardhan/English-To-Hinglish-Translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hinglish Translator Readme

This readme provides instructions on how to set up and run the Hinglish Translator, which translates English text to Hinglish (a mix of Hindi and English) using Python. The code utilizes libraries such as gradio, nltk, and googletrans to achieve this translation.

Prerequisites

Before running the code, ensure that you have the following dependencies installed on your system:

  1. gradio: A Python library for creating interactive user interfaces for machine learning models. Install it using pip:

    pip install gradio
  2. nltk: The Natural Language Toolkit library for natural language processing tasks. Install it using pip:

    pip install nltk
  3. googletrans: A Python wrapper for Google Translate. Install it using pip:

    pip install googletrans==4.0.0-rc1

Running the Code

Once you have installed the required dependencies, follow these steps to run the Hinglish Translator:

  1. Copy the code provided in the original script to a Python file, e.g., hinglish_translator.py.

  2. Open a terminal or command prompt and navigate to the directory where hinglish_translator.py is located.

  3. Run the Python script:

    python hinglish_translator.py
  4. After running the script, you will see a local URL displayed in the terminal. It will look something like this:

    Running on http://127.0.0.1:7860/
    
  5. Open a web browser and paste the URL (e.g., http://127.0.0.1:7860/) into the address bar.

  6. You will be directed to the Hinglish Translator web interface.

  7. In the provided textbox labeled "Enter text to translate to Hinglish," type or paste the English text you want to translate.

  8. After entering the text, press the "Submit" button or simply hit Enter.

  9. The translated Hinglish text will be displayed in the textbox labeled "Hinglish translation."

  10. Voilà! You now have your Hinglish translation.

Feel free to use the Hinglish Translator for your English-to-Hinglish translation needs. Enjoy!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages