Update nodes_gemini.py (#8912)

This commit is contained in:
Yoland Yan 2025-07-14 17:59:35 -07:00 committed by GitHub
parent 543c24108c
commit 9dabda19f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -406,7 +406,7 @@ class GeminiInputFiles(ComfyNodeABC):
def create_file_part(self, file_path: str) -> GeminiPart: def create_file_part(self, file_path: str) -> GeminiPart:
mime_type = ( mime_type = (
GeminiMimeType.pdf GeminiMimeType.application_pdf
if file_path.endswith(".pdf") if file_path.endswith(".pdf")
else GeminiMimeType.text_plain else GeminiMimeType.text_plain
) )