Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
enricorampazzo
/
DAMHelper
like
0
Running
App
Files
Files
Community
b069102
DAMHelper
/
utils
/
env_utils.py
enricorampazzo
removing unnecessary dependencies when running in hf, using conditionals to avoid loading npu libraries in hf
2720b8d
25 days ago
raw
Copy download link
history
blame
67 Bytes
import
os
def
in_hf
() ->
bool
:
return
os.getenv(
"env"
) ==
"hf"