Daoneeee commited on
Commit
1163e04
·
1 Parent(s): 9b5710b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -92,7 +92,10 @@ def get_conversation_chain(vectorstore):
92
  retriever=vectorstore.as_retriever(),
93
  memory=memory
94
  )
95
- return conversation_chain
 
 
 
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