안녕하세요. 강의 잘 듣고 있습니다. 이미지 생성할때 일관성 때문에 ai에 레퍼런스 이미지를 추가해서 프롬프트를 작성하고 싶은데, 이 레퍼런스 이미지 추가도 자동화할 수가 있나요? 구글 드라이브에 사진을 올리거나 시트에 이미지 주소 미리 입력해두고 api로 요청할때 같이 보낼 수가 있는지 궁금해요.
안녕하세요 이미지 생성해서 시트에 각각 링크 옮겨줄 때요, JSON 형식으로 변환할때 items [ { key : "값" }, { key : "값" }, { key : "값" } ] 이렇게 items 안에 묶어서 전달을 한 다음에 다시 items를 벗겨내는 과정이 있는데, 처음부터 items로 묶지 않으면 결과물이 다르게 나오게 되나요?
아래 사진처럼 제 fal.ai 계정에 문제가 있다고하는거로 보이네요. fal.ai에서 api 키도 잘 생성했고, 10달러 결제도 진행했는데, 확인해보니 API 생성 가이드도 강의해주신 내용이랑 차이가 좀 있어서 저는 노션에 올려주신 json을 바로 적용해보았는데 이렇게 되고 있는 상황입니다. 현재 가이드중인 submit a request 파트 내용
22강에서 VIDEO생성하는 부분학습하고 있습니다. 이미지가 히틀러 관련 주제 였는데 이미지 생성 하고 결과 조회시에 아래와 같은 정책 위반 오류가 발생했습니다. 이럴땐 어떻게 조치해야 될런지요... 422 - "{\"detail\":[{\"loc\":[\"body\"],\"msg\":\"The content could not be processed because it contained material flagged by a content checker.\",\"type\":\"content_policy_violation\",\"url\":\"https://docs.fal.ai/errors#content_policy_violation\",\"input\":{\"prompt\":\"Inside a dimly lit war room, intense arguments flare as military officers and advisors violently clash over maps and documents, the scene pulsing with tension and the weight of inevitable internal conflict, drenched in deep chiaroscuro lighting.\",\"image_url\":\"https://v3b.fal.media/files/b/zebra/QGA_ooZI7RjL8iuu8VJmp_image.webp\",\"duration\":\"5\",\"aspect_ratio\":\"16:9\",\"negative_prompt\":\"blur, distort, and low quality\",\"cfg_scale\":0.5}}]}" #입력값 { "prompt": "Inside a dimly lit war room, intense arguments flare as military officers and advisors violently clash over maps and documents, the scene pulsing with tension and the weight of inevitable internal conflict, drenched in deep chiaroscuro lighting.", "image_url": "https://v3b.fal.media/files/b/zebra/QGA_ooZI7RjL8iuu8VJmp_image.webp", "duration": "5", "negative_prompt": "blur, distort, and low quality", "cfg_scale": 0.5 } #결과값 { "detail": [ { "loc": [ "body" ], "msg": "The content could not be processed because it contained material flagged by a content checker.", "type": "content_policy_violation", "url": "https://docs.fal.ai/errors#content_policy_violation", "input": { "prompt": "Inside a dimly lit war room, intense arguments flare as military officers and advisors violently clash over maps and documents, the scene pulsing with tension and the weight of inevitable internal conflict, drenched in deep chiaroscuro lighting.", "image_url": "https://v3b.fal.media/files/b/zebra/QGA_ooZI7RjL8iuu8VJmp_image.webp", "duration": "5", "aspect_ratio": "16:9", "negative_prompt": "blur, distort, and low quality", "cfg_scale": 0.5 } } ] }
안녕하세요. n8n의 새로운 Python (Native) (Beta) 런타임 은 보안 및 실행 환경 제어를 위해 이처럼 다른 노드의 데이터를 참조하는 비표준 _ 헬퍼 함수를 지원하지 않는다고 합니다. 아래 코드 수정이 필요해 보입니다. # n8n Code (Python) node merged = {} # 1) 모든 아이템의 json을 순서대로 병합 (뒤에 오는 값이 우선) for item in items: merged.update(item.get("json", {})) # 2) ID 추가 merged["ID"] = _('IMG - 시트 행 가져오기').first(). json.ID # 3) 단일 아이템으로 반환 return [{"json": merged}]
이미지 생성 > IMG - JSON 병합 및 ID추가 노드에서 여러건을 처리하는 경우 merged["ID"] = _('IMG - 시트 행 가져오기').first(). json.ID 여기에서 무조건 첫번째 ID에 갱신을 하고 시트에 첫번째에만 URL이 갱신되고있는데 제가 잘못 구현한부분이 있을까요?
Cannot read properties of undefined (reading '0') TypeError: Cannot read properties of undefined (reading '0') at http://localhost:3000/static/js/src_pages_Video_tsx.chunk.js:40:31 선생님 이런 에러가 나옵니다 값을 읽어오지 못하는거 같은데 어떻게 해야 할까요? 코드는 선생님꺼 복붙해서 했습니다 이전 강의까지는 잘 됐는데 이번 강의에서 이런 에러를 만났습니다 확인부탁드립니다 console.log(videoId)는 undefind 나옵니다 그리고 주소창에는 http://localhost:3000/video/[object%20Object] 이렇게 나옵니다