Spaces:
Sleeping
Sleeping
Nikhitha2310
commited on
Commit
•
c7b303d
1
Parent(s):
11de355
Update app.py
Browse files
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(
|
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'])
|