Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmet91 committed Nov 24, 2024
1 parent 2410b81 commit 5c222f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/genai/langchain_google_genai/_image_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from typing import Any, Dict
from urllib.parse import urlparse

import filetype # type: ignore[import]
import requests
import filetype
from google.ai.generativelanguage_v1beta.types import Part


Expand Down Expand Up @@ -88,7 +88,7 @@ def load_part(self, image_string: str) -> Part:
raise ValueError(msg)

inline_data: Dict[str, Any] = {"data": bytes_}

mime_type, _ = mimetypes.guess_type(image_string)
if not mime_type:
kind = filetype.guess(bytes_)
Expand Down

0 comments on commit 5c222f5

Please sign in to comment.