Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -191,13 +191,7 @@ def initialize():
|
|
| 191 |
global vectorstore, chunks, llm
|
| 192 |
|
| 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)
|
| 203 |
llm = setup_llm(LLM_MODEL_NAME, LLM_TEMPERATURE, GROQ_API_KEY)
|
|
|
|
| 191 |
global vectorstore, chunks, llm
|
| 192 |
|
| 193 |
upload_gitRepository()
|
| 194 |
+
all_texts, file_references = process_directory(REPOSITORY_DIRECTORY)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 195 |
chunks = split_into_chunks(all_texts, file_references, CHUNK_SIZE, CHUNK_OVERLAP)
|
| 196 |
vectorstore = setup_chroma(chunks, EMBEDDING_MODEL_NAME, PERSIST_DIRECTORY)
|
| 197 |
llm = setup_llm(LLM_MODEL_NAME, LLM_TEMPERATURE, GROQ_API_KEY)
|