osmunphotography commited on
Commit
2a7ba92
·
verified ·
1 Parent(s): 66bf22a

Create Git

Browse files
Files changed (1) hide show
  1. Git +14 -0
Git ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import git
2
+
3
+ # Clone the repository
4
+ repo_url = "https://github.com/lllyasviel/Fooocus.git"
5
+ repo_dir = "Fooocus"
6
+ git.Repo.clone_from(repo_url, repo_dir)
7
+
8
+ # Check if a specific file exists
9
+ file_to_check = "entry_with_update.py"
10
+ file_path = f"{repo_dir}/{file_to_check}"
11
+ if os.path.exists(file_path):
12
+ print(f"The file {file_to_check} exists in the repository.")
13
+ else:
14
+ print(f"The file {file_to_check} does not exist in the repository.")