Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.71 KB

README.md

File metadata and controls

51 lines (36 loc) · 1.71 KB
## NLP Tools Flask Application

This Flask application serves as a web interface for various Natural Language Processing (NLP) tasks using Hugging Face's Transformers library. The application allows users to interact with different NLP models for text generation, translation, summarization, and more.

### Key Features:

- **GPT-3 Text Generation:** Generate text using the GPT-3 model from EleutherAI.
- **GPT-2 Text Generation:** Generate text using the GPT-2 model.
- **Translation Services:** Translate text between various languages, including English, French, Hindi, Spanish, German, and Chinese.
- **Summarization:** Generate summaries of long text inputs using the T5 model.
- **BERT Mask Filling:** Fill in masked tokens using BERT for text completion.

### Usage:

```python
from flask import Flask, render_template, request
from transformers import pipeline
import logging

# Your Flask app setup and functions here
# Make sure to include code snippets for setting up routes, handling requests, and calling NLP functions.
  1. Select the desired NLP task from the dropdown menu.
  2. Enter your input text or prompt in the provided text area.
  3. Click the "Generate Text" button to obtain the results.

Installation and Setup:

git clone https://github.com/your/repository.git
cd repository
pip install -r requirements.txt
python app.py

Access the application in your web browser at http://localhost:5000.

Technologies Used:

  • Python
  • Flask
  • Hugging Face's Transformers Library
  • HTML/CSS (for the frontend)

Contributing:

Contributions to this project are welcome. If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.