Based on your feedback, this commit further modifies the `AQ_SendImageToAPI` node in `nodes/api/AQ_SendImageToAPI.py`:
- **Added `result` output string:**
- `RETURN_TYPES` updated to `("STRING", "STRING",)`.
- `RETURN_NAMES` updated to `("instruction", "result",)`.
- The `send_images_to_api` method now captures the outcome of the API call (or image processing).
- If successful, the `result` string will contain the HTTP status and response from the server.
- If an error occurs (e.g., network issue, server error), the `result` string will contain the error message.
- If no images are provided, a message indicating this is returned in the `result` string.
- This `result` output provides a way to access the final status of the API interaction within the ComfyUI workflow, complementing the real-time UI updates from `update_node_status`.
15 lines
214 B
Plaintext
15 lines
214 B
Plaintext
huggingface_hub
|
|
accelerate
|
|
insightface
|
|
onnxruntime-gpu
|
|
facexlib
|
|
segment-anything
|
|
dill
|
|
pillow-avif
|
|
qwen-vl-utils
|
|
qwen-vl-utils[decord]
|
|
|
|
# for gemini nodes
|
|
google-generativeai>=0.3.2
|
|
google-genai
|
|
requests>=2.31.0 |