Spaces:
Running
Running
add sources folder
Browse files- app.py +3 -0
- sources/add_your_files_here +0 -0
app.py
CHANGED
@@ -111,6 +111,9 @@ def predict(query, max_characters) -> str:
|
|
111 |
docs = {}
|
112 |
|
113 |
for filename in glob.glob("sources/*"):
|
|
|
|
|
|
|
114 |
converted_doc = convert(filename)
|
115 |
|
116 |
chunks = chunk_to_length(converted_doc, chunk_size)
|
|
|
111 |
docs = {}
|
112 |
|
113 |
for filename in glob.glob("sources/*"):
|
114 |
+
if filename.endswith("add_your_files_here"):
|
115 |
+
continue
|
116 |
+
|
117 |
converted_doc = convert(filename)
|
118 |
|
119 |
chunks = chunk_to_length(converted_doc, chunk_size)
|
sources/add_your_files_here
ADDED
File without changes
|