Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -193,10 +193,10 @@ def initialize():
|
|
| 193 |
upload_gitRepository()
|
| 194 |
all_texts, file_references = process_directory(REPOSITORY_DIRECTORY)
|
| 195 |
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
|
| 201 |
chunks = split_into_chunks(all_texts, file_references, CHUNK_SIZE, CHUNK_OVERLAP)
|
| 202 |
vectorstore = setup_chroma(chunks, EMBEDDING_MODEL_NAME, PERSIST_DIRECTORY)
|
|
|
|
| 193 |
upload_gitRepository()
|
| 194 |
all_texts, file_references = process_directory(REPOSITORY_DIRECTORY)
|
| 195 |
|
| 196 |
+
# for i, text in enumerate(all_texts):
|
| 197 |
+
# print(f"Content of file {i+1}:\n")
|
| 198 |
+
# print(text)
|
| 199 |
+
# print("\n" + "-"*40 + "\n")
|
| 200 |
|
| 201 |
chunks = split_into_chunks(all_texts, file_references, CHUNK_SIZE, CHUNK_OVERLAP)
|
| 202 |
vectorstore = setup_chroma(chunks, EMBEDDING_MODEL_NAME, PERSIST_DIRECTORY)
|