Vageesh1 commited on
Commit
67f4d3b
Β·
1 Parent(s): 194d355

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -69,14 +69,14 @@ def ui():
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(
 
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(