Skip to content

Commit acc426b

Browse files
authored
Merge pull request #1532 from rhatdan/huggingface
Suggest using uv pip install to get missing module
2 parents 2fe2e51 + e455d82 commit acc426b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ramalama/huggingface.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
missing_huggingface = """
1717
Optional: Huggingface models require the huggingface-cli module.
18-
These modules can be installed via PyPi tools like pip, pip3, pipx, or via
18+
This module can be installed via PyPi tools like uv, pip, pip3, pipx, or via
1919
distribution package managers like dnf or apt. Example:
20-
pip install huggingface_hub
20+
uv pip install huggingface_hub
2121
"""
2222

2323

@@ -228,7 +228,7 @@ def hf_pull(self, args, model_path, directory_path):
228228

229229
def push(self, _, args):
230230
if not self.hf_cli_available:
231-
raise NotImplementedError(missing_huggingface)
231+
raise NotImplementedError(self.get_missing_message())
232232
proc = run_cmd(
233233
[
234234
"huggingface-cli",

ramalama/modelscope.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
missing_modelscope = """
1414
Optional: ModelScope models require the modelscope module.
15-
These modules can be installed via PyPi tools like pip, pip3, pipx, or via
15+
This module can be installed via PyPi tools like uv, pip, pip3, pipx, or via
1616
distribution package managers like dnf or apt. Example:
17-
pip install modelscope
17+
uv pip install modelscope
1818
"""
1919

2020

@@ -120,7 +120,7 @@ def ms_pull(self, args, model_path, directory_path):
120120

121121
def push(self, _, args):
122122
if not self.ms_available:
123-
raise NotImplementedError(missing_modelscope)
123+
raise NotImplementedError(self.get_missing_message())
124124
proc = run_cmd(
125125
[
126126
"modelscope",

0 commit comments

Comments
 (0)