Skip to main content

Text Generation Using Keywords

Project description

keytotext

pypi Version Downloads Open In Colab Streamlit App API Call Docker Call HuggingFace Documentation Status

keytotext (1)

Idea is to build a model which will take keywords as inputs and generate sentences as outputs.

Model:

Keytotext is based on the Amazing T5 Model: HuggingFace

Training Notebooks can be found in the Training Notebooks Folder

Usage:

Example usage: Open In Colab

Example Notebooks can be found in the Notebooks Folder

pip install keytotext

carbon (3)

UI:

UI: Streamlit App

pip install streamlit-tags

This uses a custom streamlit component built by me: GitHub

image

API:

API: API Call Docker Call

The API is hosted in the Docker container and it can be run quickly. Follow instructions below to get started

docker pull gagan30/keytotext

docker run -dp 8000:8000 gagan30/keytotext

This will start the api at port 8000 visit the url below to get the results as below:

http://localhost:8000/api?data=["India","Capital","New Delhi"]

k2t_json

Note: The Hosted API is only available on demand

BibTex:

To quote keytotext please use this citation

@misc{bhatia, 
      title={keytotext},
      url={https://github.com/gagan3012/keytotext}, 
      journal={GitHub}, 
      author={Bhatia, Gagan}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keytotext-0.2.3.tar.gz (346.4 kB view details)

Uploaded Source

Built Distribution

keytotext-0.2.3-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file keytotext-0.2.3.tar.gz.

File metadata

  • Download URL: keytotext-0.2.3.tar.gz
  • Upload date:
  • Size: 346.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.20.0

File hashes

Hashes for keytotext-0.2.3.tar.gz
Algorithm Hash digest
SHA256 d9d7f9baf5ffc7311cd24040e910ea083ae3cc90cfc427fa12d90435b0c810b1
MD5 4589566b17939c047f62492d34195472
BLAKE2b-256 c9ea341e7188c79a2d273b7c35dddd51c2f444e92643a8881f016111eb921422

See more details on using hashes here.

File details

Details for the file keytotext-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: keytotext-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.20.0

File hashes

Hashes for keytotext-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fd2748a155b2c3263b3c50b4fc39c5e6e7e1a8ce41889ff0d6031c51271b8d43
MD5 c58278133e3c021b21589cd3be6b19af
BLAKE2b-256 af3e4b7801ebaabbfa0ae736755028227852e56f6492eb7e2cc292bbe63d0969

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page