sarath2803 commited on
Commit
9d6bc3c
·
verified ·
1 Parent(s): 44f2abb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
4
  pipe = pipeline("text-generation", model="openai-community/gpt2")
5
 
6
  def chat(text):
7
- result= pipe.generate(text)
8
  return result
9
 
10
  with gr.Blocks(title='Basic chatbot based on gpt2') as demo:
 
4
  pipe = pipeline("text-generation", model="openai-community/gpt2")
5
 
6
  def chat(text):
7
+ result= pipe(text)
8
  return result
9
 
10
  with gr.Blocks(title='Basic chatbot based on gpt2') as demo: