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:
VanshGoel1
/
debug-env
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
debug-env
/
debug_env
/
tasks
/
task3
/
helper.py
hugsbun
first commit
ba52031
3 months ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
Safe
207 Bytes
def
clamp
(
value, min_val, max_val
):
if
value < min_val:
return
max_val
# Bug: should return min_val
if
value > max_val:
return
min_val
# Bug: should return max_val
return
value