Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,8 @@ import streamlit as st
|
|
| 4 |
# if 'user_text' not in st.session_state:
|
| 5 |
# st.session_state.user_text = 'foo'
|
| 6 |
|
| 7 |
-
st.text_input("Write something", value=st.session_state.user_text)
|
|
|
|
| 8 |
|
| 9 |
if st.button("Write with transformer"):
|
| 10 |
gpt2 = pipeline('text-generation')
|
|
|
|
| 4 |
# if 'user_text' not in st.session_state:
|
| 5 |
# st.session_state.user_text = 'foo'
|
| 6 |
|
| 7 |
+
# st.text_input("Write something", value=st.session_state.user_text)
|
| 8 |
+
st.text_input("Write something")
|
| 9 |
|
| 10 |
if st.button("Write with transformer"):
|
| 11 |
gpt2 = pipeline('text-generation')
|