Skip to main content

Keytotext experimental package

Project description

keytotext

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

Model:

Two Models have been built:

Usage:

from transformers import AutoTokenizer, AutoModelWithLMHead
  
tokenizer = AutoTokenizer.from_pretrained("gagan3012/k2t")

model = AutoModelWithLMHead.from_pretrained("gagan3012/k2t")

This uses a custom streamlit component built by me: GitHub

pip install streamlit-tags

The installation can also be found on PyPi

Demo:

Streamlit App

https://share.streamlit.io/gagan3012/keytotext/app.py

image

Example:

['India', 'Wedding'] -> We are celebrating today in New Delhi with three wedding anniversary parties.

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.0.3.tar.gz (8.4 MB view hashes)

Uploaded Source

Built Distribution

keytotext-0.0.3-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

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