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:
KitHung
/
Lagent
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
Lagent
/
lagent
/
utils
/
package.py
Kit-Hung
Add: lagent files
7096fd6
over 1 year ago
Raw
Download with hf CLI
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