Giter VIP home page Giter VIP logo

imsanjoykb / text-generation Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 1.51 MB

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.

Home Page: https://imsanjoykb.github.io/

License: MIT License

Jupyter Notebook 45.22% Python 2.58% CSS 9.36% Ruby 0.07% Less 2.46% SCSS 2.70% JavaScript 36.70% HTML 0.92%
nlp gpt-2 mysql flask huggingface gradio-interface

text-generation's Introduction

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: [email protected]


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",
}

text-generation's People

Contributors

imsanjoykb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

theah-lab

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.