Closed rhatdan closed 2 days ago
The PR improves the detection of the huggingface-cli tool by using Python's shutil.which() function instead of attempting to execute the CLI tool. This change provides a more efficient and standard way to check for the presence of executables in the system PATH.
classDiagram
class HuggingfaceCLIUtil {
+is_huggingface_cli_available() bool
}
note for HuggingfaceCLIUtil "Updated to use shutil.which for CLI detection"
Change | Details | Files |
---|---|---|
Replace command execution with shutil.which() for checking huggingface-cli availability |
|
ramalama/huggingface.py |
Summary by Sourcery
Enhancements: