Nikhitha2310 commited on
Commit
c7b303d
1 Parent(s): 11de355

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,5 +5,5 @@ generator = pipeline('text-generation', model='gpt2')
5
  text=st.text_input("Enter a text")
6
  btn=st.button("Submit")
7
  if(text and btn):
8
- output=generator("text")
9
  st.write(output[0]['generated_text'])
 
5
  text=st.text_input("Enter a text")
6
  btn=st.button("Submit")
7
  if(text and btn):
8
+ output=generator(text)
9
  st.write(output[0]['generated_text'])