mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-16 01:37:04 +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
|
||||
with open(file_path, "rb") as f:
|
||||
file_content = f.read()
|
||||
import base64
|
||||
base64_str = base64.b64encode(file_content).decode("utf-8")
|
||||
|
||||
return GeminiPart(
|
||||
|
||||
@ -73,6 +73,5 @@ messages_control.disable = [
|
||||
"pointless-string-statement",
|
||||
"inconsistent-return-statements",
|
||||
"import-outside-toplevel",
|
||||
"reimported",
|
||||
"redefined-outer-name",
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user