Update app.py
Browse files
app.py
CHANGED
|
@@ -169,9 +169,9 @@ def main():
|
|
| 169 |
# create conversation chain
|
| 170 |
st.session_state.conversation = get_conversation_chain(
|
| 171 |
vectorstore)
|
| 172 |
-
|
| 173 |
# conversation을 초기화합니다 (이미 설정되어 있지 않은 경우)
|
| 174 |
-
|
| 175 |
|
| 176 |
if __name__ == '__main__':
|
| 177 |
main()
|
|
|
|
| 169 |
# create conversation chain
|
| 170 |
st.session_state.conversation = get_conversation_chain(
|
| 171 |
vectorstore)
|
| 172 |
+
if "conversation" not in st.session_state or st.session_state.conversation is None:
|
| 173 |
# conversation을 초기화합니다 (이미 설정되어 있지 않은 경우)
|
| 174 |
+
st.session_state.conversation = ConversationalRetrievalChain()
|
| 175 |
|
| 176 |
if __name__ == '__main__':
|
| 177 |
main()
|