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:
- Using T5-base size = 850 MB can be found here: https://huggingface.co/gagan3012/keytotext
- Using T5-small size = 230 MB can be found here: https://huggingface.co/gagan3012/keytotext-small
- Updated model: https://huggingface.co/gagan3012/k2t
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:
https://share.streamlit.io/gagan3012/keytotext/app.py
Example:
['India', 'Wedding'] -> We are celebrating today in New Delhi with three wedding anniversary parties.
Project details
Release history Release notifications | RSS feed
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.5.tar.gz
(8.4 MB
view hashes)
Built Distribution
Close
Hashes for keytotext-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01bcc78e332da693836ca3395ea7841b982b0a618a4fca86b9ab250b33e2e9da |
|
MD5 | cc40dbc9ed10f58c2b0ec5b79ee83f3a |
|
BLAKE2b-256 | 28e545541dc116304df678e38ab77b9c6897f4fbbed5484604663cf5b8a52119 |