Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
ddoc
/
cutoff
like
1
Model card
Files
Files and versions
xet
Community
main
cutoff
/
scripts
/
cutofflib
/
utils.py
ddoc
Upload 13 files
d2ae5b0
almost 3 years ago
raw
Copy download link
history
blame
contribute
delete
166 Bytes
import
sys
_debug =
False
def
set_debug
(
is_debug:
bool
):
global
_debug
_debug = is_debug
def
log
(
s:
str
):
if
_debug:
print
(s, file=sys.stderr)