allenai/common_gen
Viewer • Updated • 72.9k • 3.54k • 30
How to use gagan3012/k2t-new with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("gagan3012/k2t-new")
model = AutoModelForSeq2SeqLM.from_pretrained("gagan3012/k2t-new")Idea is to build a model which will take keywords as inputs and generate sentences as outputs.
Keytotext is based on the Amazing T5 Model:
Training Notebooks can be found in the Training Notebooks Folder
Example Notebooks can be found in the Notebooks Folder
pip install keytotext
pip install streamlit-tags
This uses a custom streamlit component built by me: GitHub