aisah1 commited on
Commit
be6172f
1 Parent(s): dfc3b85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,11 +1,12 @@
1
  import gradio
2
 
3
- from transformers import AutoTokenizer
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(