xsnames commited on
Commit
331267d
β€’
1 Parent(s): bf6022a
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,8 +1,7 @@
1
- from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2
  import gradio as gr
3
-
4
  tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
5
- model = GPT2Model.from_pretrained('gpt2')
6
 
7
  def generate(prompt):
8
 
 
 
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