Spaces:
Sleeping
Sleeping
Download scripts/inspect_pkg_install.py from Evoblack/LibreTranslate-Marathi: direct link, hf CLI and curl.
- Browser
- Download file 293 Bytes
-
https://huggingface.co/spaces/Evoblack/LibreTranslate-Marathi/resolve/main/scripts/inspect_pkg_install.py
- Command line
-
hf download hf://spaces/Evoblack/LibreTranslate-Marathi/scripts/inspect_pkg_install.py
-
curl -L -o inspect_pkg_install.py https://huggingface.co/spaces/Evoblack/LibreTranslate-Marathi/resolve/main/scripts/inspect_pkg_install.py
293 Bytes
| import inspect | |
| import argostranslate.package as pkg | |
| print('module:', pkg) | |
| print('has install_from_path:', hasattr(pkg, 'install_from_path')) | |
| if hasattr(pkg, 'install_from_path'): | |
| print('source:') | |
| print(inspect.getsource(pkg.install_from_path)) | |
| else: | |
| print('no install_from_path') | |