Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import tensorflow as tf
|
2 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
|
|
3 |
|
4 |
def generate_text(sentence,len):
|
5 |
tokenizer = GPT2Tokenizer.from_pretrained("gpt2-large")
|
|
|
1 |
import tensorflow as tf
|
2 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
3 |
+
import gradio as gr
|
4 |
|
5 |
def generate_text(sentence,len):
|
6 |
tokenizer = GPT2Tokenizer.from_pretrained("gpt2-large")
|