Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -127,8 +127,8 @@ def initialize():
|
|
127 |
print("LEEEEEEEEEEEENGTH of code_texts: ", len(code_texts))
|
128 |
print("LEEEEEEEEEEEENGTH of doc_files: ", len(doc_texts))
|
129 |
|
130 |
-
code_chunks =
|
131 |
-
doc_chunks =
|
132 |
|
133 |
print(f"Total number of code_chunks: {len(code_chunks)}")
|
134 |
print(f"Total number of doc_chunks: {len(doc_chunks)}")
|
|
|
127 |
print("LEEEEEEEEEEEENGTH of code_texts: ", len(code_texts))
|
128 |
print("LEEEEEEEEEEEENGTH of doc_files: ", len(doc_texts))
|
129 |
|
130 |
+
code_chunks = chunk_pythoncode_and_add_metadata(code_texts, code_references)
|
131 |
+
doc_chunks = chunk_text_and_add_metadata(doc_texts, doc_references, CHUNK_SIZE, CHUNK_OVERLAP)
|
132 |
|
133 |
print(f"Total number of code_chunks: {len(code_chunks)}")
|
134 |
print(f"Total number of doc_chunks: {len(doc_chunks)}")
|