아래 사진처럼 제 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 } } ] }
Order 서비스에서 Command가 실행되면 ORDERS_EVENT에 이벤트가 저장되고 Query가 실행되면 ORDER_EVENT에서 이벤트를 읽어 데이터의 최종상태를 읽는다는것으로 이해했는데요..! 그렇다면 ORDERS 테이블은 실질적으로 사용되지 않는다고 이해하면될까요..?
작업형 2에서 만약 회귀 문제이고 평가지표가 RMSE라면, 점수를 매길때 RMSE값으로 점수를 매기는건가요? 만약 그렇다면 어느정도로 차이가 나야 잘 나온건지 가늠이 안갑니다,, 선생님의 답이 RMSE값이 825일때, 제가 구한값이 800~850정도라면 평가가 잘된거라고 봐도 될까요
Pageable 인터페이스와 @PageableDefault 를 컨트롤러부터 사용하면 편하게 작업할 수 있을 것이라고 생각하고 있습니다. 그런데 spring-data에서 제공하는 것들이라 컨트롤러나 애플리케이션(서비스)에서 사용하면 안 될 것 같아서 새롭게 객체를 정의해서 사용해야 하는 것인가라는 생각이 드는데요. 한편으로는 유틸느낌으로 사용해도 되지 않을까라는 생각이 들기도 합니다. 실제로 @PageableDefault 이것은 org.springframework.data.web 패키지에 들어있어서 web계층을 대상으로 만들어진 것 같구요 어떤식으로 풀어나가야 할까요? 추가적으로 Http interface를 사용하기 위해 @HttpExchange을 사용할 경우 required패키지 인터페이스에 바로 붙여서 사용해도 무방한걸까요?
예제로 만들어주신 데이터에서 추가적으로 데이터를 변경하여 테스트를 하고 싶은데요 아래 데이터를 가져 올 수 있을가요? Fred에서 제공하는 지표 코드 Yahoo 에서 제공하는 지표와 티커 나스닥 100의 티커 해당 정보를 어떻게 가져오는지 알아야 추후- 응용하면서 사용할 수 있을것 같습니다. 감사합니다.
강의에서 게시글 삭제 API를 배웠는데, 강의 화면이 잘려서 완전한 코드를 확인하지 못했습니다. @app.delete("/posts/{post_id}", response_model=dict) def delete_post(post_id: int, db: Session = Depends(get_db)): query = select(Post).where(Post.id == post_id) post = db.execute(query).scalar_one_or_none() if post is None: raise HTTPException(status_code=404, detail="게시글을 찾을 수 없습니다.") db.delete(post) # ← 여기서 화면이 짤림 깃허브 확인해서 코드를 완성하긴 했는데, 다른 수강생들을 위해서 강의 수강자료 또는 강의 업데이트 부탁드립니다.
강의에서 배운 게시글 목록 조회 코드에서 궁금한 점이 있습니다. @app.get("/posts", response_model=list[PostResponse]) def get_posts(db: Session = Depends(get_db)): query = select(Post).order_by(Post.created_at.desc()) posts = db.execute(query).scalars().all() if posts is None: raise HTTPException(status_code=404, detail="게시글이 존재하지 않습니다.") return posts SQLAlchemy 2.0의 .all() 메서드는 데이터가 없을 때 None 을 반환하는 게 아니라 빈 리스트 [] 를 반환 한다고 알고있습니다. 결과적으로 if 문을 탈 수가 없는데, 필요 없는 코드가 아닌가 해서요. 그냥 빈 리스트를 반환하면 되지 않나요?
2번 문제를 풀다가 sum을 쓰는 방법에 대해서 궁금한 점이 있어 문의 드리빈다. 저는 print((a.sum(axis=1) > 0.1).sum()) 이렇게 풀었는데, 선생님께서는 print(sum(a.sum(axis=1) > 0.1)) 이렇게 푸셨더라구요. 답은 같은데, 두 방법의 차이가 있을까요?