Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
naicoi
/
lipsync-docker
like
0
Runtime error
App
Files
Files
Community
4
Fetching metadata from the HF Docker repository...
refs/pr/2
lipsync-docker
/
time_util.py
naicoi
feature/uv-migration (#6)
8532e19
6 months ago
Raw
Download with hf CLI
Copy download link
History
Blame
229 Bytes
import
time
from
contextlib
import
contextmanager
@contextmanager
def
timer
(
name:
str
):
start = time.time()
print
(
f"
{name}
..."
)
yield
print
(
f" ->
{name}
completed in
{time.time() - start:
.2
f}
sec"
)