Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
zhang4096
/
OneLagent
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
OneLagent
/
lagent
/
utils
/
package.py
3v324v23
Add files
4535c91
3 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
179 Bytes
from
importlib.util
import
find_spec
def
is_module_exist
(
module_name
):
spec = find_spec(module_name)
if
spec
is
None
:
return
False
else
:
return
True