Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,14 +6,14 @@ system("pip3 install transformers")
|
|
6 |
|
7 |
from transformers import AutoTokenizer
|
8 |
|
9 |
-
tokenizer = AutoTokenizer.
|
10 |
|
11 |
def work(inp_text):
|
12 |
out = "hello"
|
13 |
|
14 |
out = tokenizer.encode(hello)
|
15 |
|
16 |
-
return out
|
17 |
|
18 |
demo = gradio.Interface(
|
19 |
fn=work,
|
|
|
6 |
|
7 |
from transformers import AutoTokenizer
|
8 |
|
9 |
+
tokenizer = AutoTokenizer.from_pretrained("openai-community/openai-gpt")
|
10 |
|
11 |
def work(inp_text):
|
12 |
out = "hello"
|
13 |
|
14 |
out = tokenizer.encode(hello)
|
15 |
|
16 |
+
return str(out)
|
17 |
|
18 |
demo = gradio.Interface(
|
19 |
fn=work,
|