trackio-1234 / dummy_commit_scheduler.py
abidlabs's picture
abidlabs HF Staff
Upload folder using huggingface_hub
b83f48f verified
raw
history blame contribute delete
345 Bytes
# A dummy object to fit the interface of huggingface_hub's CommitScheduler
class DummyCommitSchedulerLock:
def __enter__(self):
return None
def __exit__(self, exception_type, exception_value, exception_traceback):
pass
class DummyCommitScheduler:
def __init__(self):
self.lock = DummyCommitSchedulerLock()