Spaces:
Sleeping
Sleeping
Upload dnd_database.py
Browse files- lc_base/dnd_database.py +2 -0
lc_base/dnd_database.py
CHANGED
@@ -6,6 +6,8 @@ from langchain.vectorstores import FAISS
|
|
6 |
|
7 |
def create_dnd_database(file_list):
|
8 |
raw_text = ''
|
|
|
|
|
9 |
for pdf in file_list:
|
10 |
raw_text += process_pdf(pdf)
|
11 |
|
|
|
6 |
|
7 |
def create_dnd_database(file_list):
|
8 |
raw_text = ''
|
9 |
+
if file_list is None:
|
10 |
+
return None
|
11 |
for pdf in file_list:
|
12 |
raw_text += process_pdf(pdf)
|
13 |
|