Spaces:
Runtime error
Runtime error
Update utils.py
Browse files110 unmodified lines11111211311411511611 unmodified lines128129130131132133110 unmodified linesexcept RepositoryNotFoundError:repo = Repository(f"{username}/{repo_name}", clone_from=f"{username}/{repo_name}", use_auth_token=token, repo_type="dataset")# Generate a random 10-digit numberrandom_number = random.randint(1000000000, 9999999999)11 unmodified linessubprocess.run(["git", "config", "user.name", "idle stoev"], check=True, cwd=repo.local_dir)subprocess.run(["git", "config", "user.email", "di@ffusion.ai"], check=True, cwd=repo.local_dir)# Commit and push changesrepo.git_add(pattern=".")repo.git_commit(f"Add image at {current_datetime}")110 unmodified lines11111211311411511611711811911 unmodified lines131132133134135136137110 unmodified linesexcept RepositoryNotFoundError:repo = Repository(f"{username}/{repo_name}", clone_from=f"{username}/{repo_name}", use_auth_token=token, repo_type="dataset")# Pull the latest changes from the remote repositoryrepo.git_pull()# Generate a random 10-digit numberrandom_number = random.randint(1000000000, 9999999999)11 unmodified linessubprocess.run(["git", "config", "user.name", "idle stoev"], check=True, cwd=repo.local_dir)subprocess.run(["git", "config", "user.email", "di@ffusion.ai"], check=True, cwd=repo.local_dir)# Commit and push changesrepo.git_add(pattern=".")repo.git_commit(f"Add image at {current_datetime}")
utils.py+4