xsnames commited on
Commit
b4a0855
β€’
1 Parent(s): 331267d
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
- from transformers import GPT2Tokenizer, TFGPT2Model
3
  tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
4
- model = TFGPT2Model.from_pretrained('gpt2')
5
 
6
  def generate(prompt):
7
 
 
1
  import gradio as gr
2
+ from transformers import GPT2Tokenizer, TFGPT2LMHeadModel
3
  tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
4
+ model = TFGPT2LMHeadModel.from_pretrained('gpt2')
5
 
6
  def generate(prompt):
7