Rohankumar31 commited on
Commit
1076afc
1 Parent(s): 5706a47

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -0
main.py CHANGED
@@ -1,5 +1,6 @@
1
  import transformers
2
  from transformers import TFGPT2LMHeadModel ,GPT2Tokenizer, BitsAndBytesConfig
 
3
  tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
4
  model = TFGPT2LMHeadModel.from_pretrained('gpt2',pad_token_id = tokenizer.eos_token_id)
5
  def generate_text(inp):
 
1
  import transformers
2
  from transformers import TFGPT2LMHeadModel ,GPT2Tokenizer, BitsAndBytesConfig
3
+ import tensorflow as tf
4
  tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
5
  model = TFGPT2LMHeadModel.from_pretrained('gpt2',pad_token_id = tokenizer.eos_token_id)
6
  def generate_text(inp):