Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
import gradio
|
2 |
|
3 |
-
|
4 |
-
from transformers import OpenAIGPTLMHeadModel
|
5 |
|
6 |
def work(inp_text):
|
7 |
out = "hello"
|
8 |
|
|
|
|
|
9 |
return out
|
10 |
|
11 |
demo = gradio.Interface(
|
|
|
1 |
import gradio
|
2 |
|
3 |
+
tokenizer = AutoTokenizer.from_preteained("openai-community/openai-gpt")
|
|
|
4 |
|
5 |
def work(inp_text):
|
6 |
out = "hello"
|
7 |
|
8 |
+
out = tokenizer.encode(hello)
|
9 |
+
|
10 |
return out
|
11 |
|
12 |
demo = gradio.Interface(
|