bupa1018 commited on
Commit
2d813f3
·
1 Parent(s): 1a5022f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = split_python_code_into_chunks(code_texts, code_references)
131
- doc_chunks = split_into_chunks(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)}")
 
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)}")