mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2025-12-09 22:14:34 +08:00
Update nodes_gemini.py (#8912)
This commit is contained in:
parent
543c24108c
commit
9dabda19f0
@ -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
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user