Skip to content

Commit c7cdd48

Browse files
committed
Refactor model retrieval logic in HuggingFaceClient
- Updated variable name from 'model' to 'model_info' for clarity in the model retrieval process. - Ensured consistent naming conventions to enhance code readability. Signed-off-by: Victor Chang <[email protected]>
1 parent 0086d69 commit c7cdd48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/pipeline-generator/pipeline_generator/core/hub_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ def list_models_from_endpoints(
124124
elif endpoint.model_id:
125125
# Get specific model
126126
logger.info(f"Fetching model: {endpoint.model_id}")
127-
model = self.get_model_info(endpoint.model_id)
128-
if model:
129-
all_models.append(model)
127+
model_info = self.get_model_info(endpoint.model_id)
128+
if model_info:
129+
all_models.append(model_info)
130130

131131
return all_models
132132

0 commit comments

Comments
 (0)