Spaces:
Sleeping
Sleeping
Update util.py
Browse files
util.py
CHANGED
@@ -30,13 +30,13 @@ embeddings = HuggingFaceEmbeddings(model_kwargs=model_kwargs)
|
|
30 |
# llm = HuggingFacePipeline(pipeline=pipe)
|
31 |
|
32 |
|
33 |
-
def clone_repo(repo):
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
|
41 |
# git.Repo.clone_from("https://github.com/Divyansh3021/Github_code_assistant.git", "githubCode")
|
42 |
|
|
|
30 |
# llm = HuggingFacePipeline(pipeline=pipe)
|
31 |
|
32 |
|
33 |
+
# def clone_repo(repo):
|
34 |
+
# if os.path.exists("githubCode") and os.path.isdir("githubCode"):
|
35 |
+
# print("File already exists!!")
|
36 |
+
# pass
|
37 |
+
# else:
|
38 |
+
# print("Cloning repo!!")
|
39 |
+
# git.Repo.clone_from(repo,"githubCode")
|
40 |
|
41 |
# git.Repo.clone_from("https://github.com/Divyansh3021/Github_code_assistant.git", "githubCode")
|
42 |
|