Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def load_project_ids(json_file):
|
|
48 |
data = json.load(f)
|
49 |
return data['project_ids']
|
50 |
|
51 |
-
def
|
52 |
print("Start the upload_gitRepository function")
|
53 |
project_ids = load_project_ids('repository_ids.json')
|
54 |
|
@@ -202,7 +202,7 @@ def rag_workflow(query):
|
|
202 |
def initialize():
|
203 |
global vectorstore, chunks, llm
|
204 |
|
205 |
-
|
206 |
# all_texts, file_references = process_directory(REPOSITORY_DIRECTORY)
|
207 |
# chunks = split_into_chunks(all_texts, file_references, CHUNK_SIZE, CHUNK_OVERLAP)
|
208 |
# vectorstore = setup_chroma(chunks, EMBEDDING_MODEL_NAME, PERSIST_DIRECTORY)
|
|
|
48 |
data = json.load(f)
|
49 |
return data['project_ids']
|
50 |
|
51 |
+
def download_gitlab_repo():
|
52 |
print("Start the upload_gitRepository function")
|
53 |
project_ids = load_project_ids('repository_ids.json')
|
54 |
|
|
|
202 |
def initialize():
|
203 |
global vectorstore, chunks, llm
|
204 |
|
205 |
+
download_gitlab_repo()
|
206 |
# all_texts, file_references = process_directory(REPOSITORY_DIRECTORY)
|
207 |
# chunks = split_into_chunks(all_texts, file_references, CHUNK_SIZE, CHUNK_OVERLAP)
|
208 |
# vectorstore = setup_chroma(chunks, EMBEDDING_MODEL_NAME, PERSIST_DIRECTORY)
|