Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -69,14 +69,14 @@ def ui():
|
|
69 |
memory=ConversationBufferWindowMemory(k=2)
|
70 |
)
|
71 |
|
72 |
-
|
73 |
-
|
74 |
|
75 |
-
|
76 |
-
|
77 |
|
78 |
-
|
79 |
-
|
80 |
|
81 |
if user_api_key is not None and user_api_key.strip() != "":
|
82 |
eleven_labs_api_key = st.sidebar.text_input(
|
|
|
69 |
memory=ConversationBufferWindowMemory(k=2)
|
70 |
)
|
71 |
|
72 |
+
if 'history' not in st.session_state:
|
73 |
+
st.session_state['history'] = []
|
74 |
|
75 |
+
if 'generated' not in st.session_state:
|
76 |
+
st.session_state['generated'] = ["Hello ! Ask me anything about " + " π€"]
|
77 |
|
78 |
+
if 'past' not in st.session_state:
|
79 |
+
st.session_state['past'] = ["Hey ! π"]
|
80 |
|
81 |
if user_api_key is not None and user_api_key.strip() != "":
|
82 |
eleven_labs_api_key = st.sidebar.text_input(
|