Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,10 @@ def get_conversation_chain(vectorstore):
|
|
92 |
retriever=vectorstore.as_retriever(),
|
93 |
memory=memory
|
94 |
)
|
95 |
-
|
|
|
|
|
|
|
96 |
|
97 |
|
98 |
|
|
|
92 |
retriever=vectorstore.as_retriever(),
|
93 |
memory=memory
|
94 |
)
|
95 |
+
if conversation_chain is not None: # 반환된 대화 체인 객체가 None이 아닌지 확인합니다.
|
96 |
+
return conversation_chain
|
97 |
+
else:
|
98 |
+
raise ValueError("Conversation chain creation failed or returned None")
|
99 |
|
100 |
|
101 |
|