bupa1018 commited on
Commit
5d32d16
·
1 Parent(s): 8c715b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 upload_gitRepository():
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
- upload_gitRepository()
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)