Skip to content

Commit

Permalink
Fix easy patch in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvillanova committed Mar 3, 2025
1 parent 3e6bbf6 commit e40a6a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/smolagents/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from enum import Enum
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union

from huggingface_hub import InferenceClient
from huggingface_hub.utils import is_torch_available
from PIL import Image

Expand Down Expand Up @@ -429,6 +428,8 @@ def __init__(
custom_role_conversions: Optional[Dict[str, str]] = None,
**kwargs,
):
from huggingface_hub import InferenceClient

super().__init__(**kwargs)
self.model_id = model_id
self.provider = provider
Expand Down

0 comments on commit e40a6a0

Please sign in to comment.