Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
enricorampazzo
/
DAMHelper
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
1442ab1
DAMHelper
/
utils
/
env_utils.py
enricorampazzo
removing unnecessary dependencies when running in hf, using conditionals to avoid loading npu libraries in hf
2720b8d
6 months ago
raw
Copy download link
history
blame
67 Bytes
import
os
def
in_hf
() ->
bool
:
return
os.getenv(
"env"
) ==
"hf"