Update
Browse files
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 =
|
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 |
|