aisah1 commited on
Commit
06ffcdd
1 Parent(s): 6f54cf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,14 +6,14 @@ system("pip3 install transformers")
6
 
7
  from transformers import AutoTokenizer
8
 
9
- tokenizer = AutoTokenizer.from_pretrpained("openai-community/openai-gpt")
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,