How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="gagan3012/Fox-News-Generator")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("gagan3012/Fox-News-Generator")
model = AutoModelForCausalLM.from_pretrained("gagan3012/Fox-News-Generator", device_map="auto")
Quick Links

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Generating Right Wing News Using GPT2

I have built a custom model for it using data from Kaggle

Creating a new finetuned model using data from FOX news

My model can be accessed at gagan3012/Fox-News-Generator

Check the BenchmarkTest notebook for results

Find the model at gagan3012/Fox-News-Generator

from transformers import AutoTokenizer, AutoModelWithLMHead

tokenizer = AutoTokenizer.from_pretrained("gagan3012/Fox-News-Generator")

model = AutoModelWithLMHead.from_pretrained("gagan3012/Fox-News-Generator")
Downloads last month
9
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support