Skip to content

The goal of this project is to detect the topic of the text and write a proper comment for the text , store the generate comment in database and shows it with rest API.

License

Notifications You must be signed in to change notification settings

imsanjoykb/Text-Generation

Repository files navigation

Author Stars MIT Python Framework Frontend Open Notebook

alt text

Author: Sanjoy Biswas

Data Scientist | Machine Learning Engineer
Website: https://imsanjoykb.github.io/
ResearchGate: https://www.researchgate.net/profile/imsanjoykb
Linkedin: https://www.linkedin.com/in/imsanjoykb/
Email: sanjoy.eee32@gmail.com


Objective

The goal of this project is to detect the topic of the text and write a proper comment for the text , store the generate comment in database and shows it with rest API.


Background

Text generation is an application of language modeling, and a subfield of natural language processing. It utilizes techniques in artificial intelligence to automatically generate natural language text, which fits in a certain communication context.

Text generation can be used to write stories, poems, emails, news articles, and more. It is also useful for machine translation.


Project Installation

Install the virtualenv package

pip install virtualenv  

Create the virtual environment

virtualenv venv 

Activate the virtual environment

mypthon\Scripts\activate

Install Dependencies

pip3 install -r requirements.txt

Run the text generation code which redirect userinterface of Gradio and the input of the text generate datafile

python Text_Generation.py

After this, run main.py file which scale the data and connect with database to store data at DB

python main.py

Then run app.py file which shows all data and also Gradio

python app.py

Project GUI

Gradio Interface for text generation:

alt text

Shows Generated output:

alt text

Store Data at Database:

alt text

Shows generated data with timestamp in GUI:

alt text


Citing

@misc{AI Text Generation,
  author = {Sanjoy Biswas},
  title = {Detect the topic of the text and write a proper comment for the text,  store the generate comment in database and shows it with rest API.},
  year = {2021},
  publisher = {GitHub},
  journal = {GitHub repository},
  url="https://github.com/imsanjoykb/Text-Generation",
}

About

The goal of this project is to detect the topic of the text and write a proper comment for the text , store the generate comment in database and shows it with rest API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published