A user-friendly web application built with Gradio and Hugging Face Transformers to provide a suite of text processing functionalities, including translation, summarization, sentiment analysis, grammar correction, and character counting.
Live Demo - Explore the deployed version of the app.
- Translation: Translate text from English to French, German, or Romanian.
- Text Summarization: Summarize lengthy texts and provide word counts.
- Sentiment Analysis: Determine the sentiment (positive, negative, neutral) of a given text.
- Grammar Correction: Automatically correct grammar errors in English sentences.
- Character Counting: Instantly count the number of characters in any text input.
- Python (3.x recommended)
- pip (Python package manager)
-
Clone the repository:
git clone https://github.com/oB3TAo/translation-app.git cd translation-app
-
Install dependencies: Install all required packages listed in the
requirements.txt
file:pip install -r requirements.txt
-
Run the application: Start the web app locally by running:
python main.py
-
Access the app: Once the server starts, the app will automatically open in your browser. You can also manually navigate to
http://127.0.0.1:7860/
.
The app offers the following functionalities:
- Translation: Select a language (French, German, Romanian) and input text in English to translate.
- Text Summarization: Paste or type a large block of text and get a concise summary along with a word count.
- Sentiment Analysis: Input any text to determine its emotional tone (positive, negative, or neutral).
- Grammar Correction: Submit an English sentence, and the tool will return a grammatically corrected version.
- Character Counting: Instantly count the number of characters in your inputted text.
You can also use predefined examples within the app to test each functionality.
- Gradio: For building the user interface of the web app.
- Hugging Face Transformers: For implementing NLP models such as translation, summarization, and sentiment analysis.