Spaces:
Sleeping
Sleeping
| import git | |
| # Clone the repository | |
| repo_url = "https://github.com/lllyasviel/Fooocus.git" | |
| repo_dir = "Fooocus" | |
| git.Repo.clone_from(repo_url, repo_dir) | |
| # Check if a specific file exists | |
| file_to_check = "entry_with_update.py" | |
| file_path = f"{repo_dir}/{file_to_check}" | |
| if os.path.exists(file_path): | |
| print(f"The file {file_to_check} exists in the repository.") | |
| else: | |
| print(f"The file {file_to_check} does not exist in the repository.") | |