Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,8 +65,7 @@ def save_to_faiss(chunks: list[Document]):
|
|
65 |
return FAISS.from_documents(chunks, embeddings)
|
66 |
|
67 |
def process_query(query_text: str, vectorstore):
|
68 |
-
if vectorstore is
|
69 |
-
None:
|
70 |
return "База данных не инициализирована", []
|
71 |
|
72 |
try:
|
|
|
65 |
return FAISS.from_documents(chunks, embeddings)
|
66 |
|
67 |
def process_query(query_text: str, vectorstore):
|
68 |
+
if vectorstore is None:
|
|
|
69 |
return "База данных не инициализирована", []
|
70 |
|
71 |
try:
|