Spaces:
Runtime error
Runtime error
Download src/utils/import_tools.py from gregorkrzmanc/jetclustering: direct link, hf CLI and curl.
- Browser
- Download file 237 Bytes
-
https://huggingface.co/spaces/gregorkrzmanc/jetclustering/resolve/main/src/utils/import_tools.py
- Command line
-
hf download hf://spaces/gregorkrzmanc/jetclustering/src/utils/import_tools.py
-
curl -L -o import_tools.py https://huggingface.co/spaces/gregorkrzmanc/jetclustering/resolve/main/src/utils/import_tools.py
237 Bytes
| from importlib.util import spec_from_file_location, module_from_spec | |
| def import_module(path, name='_mod'): | |
| spec = spec_from_file_location(name, path) | |
| mod = module_from_spec(spec) | |
| spec.loader.exec_module(mod) | |
| return mod | |