Spaces:
Sleeping
Sleeping
Download dummy_commit_scheduler.py from delsj/function-gemma: direct link, hf CLI and curl.
- Browser
- Download file 345 Bytes
-
https://huggingface.co/spaces/delsj/function-gemma/resolve/main/dummy_commit_scheduler.py
- Command line
-
hf download hf://spaces/delsj/function-gemma/dummy_commit_scheduler.py
-
curl -L -o dummy_commit_scheduler.py https://huggingface.co/spaces/delsj/function-gemma/resolve/main/dummy_commit_scheduler.py
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() | |