Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Superkingjcj
/
Lagent
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
e7772ba
Lagent
/
lagent
/
utils
/
package.py
Superkingjcj
Upload 111 files
e679d69
verified
about 1 month ago
raw
Copy download link
history
blame
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