Spaces:
No application file
No application file
UpdatedReadme
#1
by FlipFlopsNSocks - opened
8 unmodified lines910118 unmodified lines---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference8 unmodified lines91011121314151617188 unmodified lines---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-referencefrom transformers import GPT2Tokenizer, GPT2Modeltokenizer = GPT2Tokenizer.from_pretrained('gpt2-xl')model = GPT2Model.from_pretrained('gpt2-xl')text = "Replace me by any text you'd like."encoded_input = tokenizer(text, return_tensors='pt')output = model(**encoded_input)
README.md+7