mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-17 01:52:59 +08:00
fix(api-nodes): reimport of base64 in Gemini node (#10181)
This commit is contained in:
parent
ed3ca78e08
commit
8a293372ec
@ -490,7 +490,6 @@ class GeminiInputFiles(ComfyNodeABC):
|
|||||||
# Use base64 string directly, not the data URI
|
# Use base64 string directly, not the data URI
|
||||||
with open(file_path, "rb") as f:
|
with open(file_path, "rb") as f:
|
||||||
file_content = f.read()
|
file_content = f.read()
|
||||||
import base64
|
|
||||||
base64_str = base64.b64encode(file_content).decode("utf-8")
|
base64_str = base64.b64encode(file_content).decode("utf-8")
|
||||||
|
|
||||||
return GeminiPart(
|
return GeminiPart(
|
||||||
|
|||||||
@ -73,6 +73,5 @@ messages_control.disable = [
|
|||||||
"pointless-string-statement",
|
"pointless-string-statement",
|
||||||
"inconsistent-return-statements",
|
"inconsistent-return-statements",
|
||||||
"import-outside-toplevel",
|
"import-outside-toplevel",
|
||||||
"reimported",
|
|
||||||
"redefined-outer-name",
|
"redefined-outer-name",
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user