YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
GPT-2 Humanlike Text Generator π€π§
This repo contains a Python script using the base GPT-2 model with post-processing to make text more humanlike.
Features
- Uses GPT-2 from Hugging Face
- Adds fillers, emotion, self-doubt, casual tone
- Processes JSON input & saves results
- Zips all outputs for download
Example
from transformers import GPT2LMHeadModel, GPT2Tokenizer
from inference_script import generate_text_gpt2_humanlike, post_process_text
model = GPT2LMHeadModel.from_pretrained('gpt2')
tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
text = generate_text_gpt2_humanlike('What is AI?', model, tokenizer)
final = post_process_text(text)
print(final)
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support