Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -334,12 +334,12 @@ def initialize():
|
|
334 |
doc_file_paths = ['docs/source/usage/lib.rst']
|
335 |
|
336 |
|
337 |
-
|
338 |
|
339 |
-
doc_files, doc_file_references = process_directory(REPOSITORY_DIRECTORY,
|
340 |
|
341 |
-
code_chunks = split_pythoncode_into_chunks(
|
342 |
-
doc_chunks = split_into_chunks(
|
343 |
|
344 |
print(f"Total number of code_chunks: {len(code_chunks)}")
|
345 |
print(f"Total number of code_chunks: {len(doc_chunks)}")
|
|
|
334 |
doc_file_paths = ['docs/source/usage/lib.rst']
|
335 |
|
336 |
|
337 |
+
code_files, code_file_references = process_directory(REPOSITORY_DIRECTORY, code_partial_paths, code_file_path)
|
338 |
|
339 |
+
doc_files, doc_file_references = process_directory(REPOSITORY_DIRECTORY, doc_partial_paths, doc_file_paths)
|
340 |
|
341 |
+
code_chunks = split_pythoncode_into_chunks(code_files, code_file_references, 1500, 0)
|
342 |
+
doc_chunks = split_into_chunks(doc_files, doc_file_references, 1024, 128)
|
343 |
|
344 |
print(f"Total number of code_chunks: {len(code_chunks)}")
|
345 |
print(f"Total number of code_chunks: {len(doc_chunks)}")
|