Ming-3.0-tts-tiny / fm_utils.py
Johnson-Lin's picture
Add files using upload-large-folder tool
31ab957 verified
Raw History Blame Contribute Delete
240 Bytes
def is_package_available(package_name: str) -> bool:
try:
import importlib
package_exists = importlib.util.find_spec(package_name) is not None
return package_exists
except Exception:
return False