This commit is contained in:
Ubuntu
2026-05-04 14:55:48 +00:00
parent e42c2727af
commit 1cdf246a6e
2 changed files with 4 additions and 8 deletions
+2 -4
View File
@@ -2,6 +2,7 @@ import os
import uuid
import requests
from ..common import (
bria_json_headers,
poll_status_until_completed,
)
from .video_utils import upload_video_to_s3
@@ -83,11 +84,8 @@ class GreenScreenVideoNode():
"output_container_and_codec": output_container_and_codec,
"preserve_audio": preserve_audio,
}
headers = bria_json_headers(api_key)
headers = {
"Content-Type": "application/json",
"api_token": f"{api_key}",
}
response = requests.post(self.api_url, json=payload, headers=headers)
@@ -2,6 +2,7 @@ import os
import uuid
import requests
from ..common import (
bria_json_headers,
normalize_images_input,
poll_status_until_completed,
upload_pil_image_to_temp
@@ -124,10 +125,7 @@ class ReplaceVideoBackgroundNode():
"preserve_audio": preserve_audio,
}
headers = {
"Content-Type": "application/json",
"api_token": f"{api_key}",
}
headers = bria_json_headers(api_key)
response = requests.post(self.api_url, json=payload, headers=headers)