feat: Enhance StyleGuard with VLM-based style extraction for specific style_prefix
This commit is contained in:
@@ -254,8 +254,13 @@ async def extract_style(
|
||||
return style_schema
|
||||
|
||||
from pixelle_video.services.quality.style_guard import StyleGuard
|
||||
from api.dependencies import get_pixelle_video
|
||||
|
||||
style_guard = StyleGuard()
|
||||
# Get LLM service for VLM-based style extraction
|
||||
pixelle_video = await get_pixelle_video()
|
||||
llm_service = pixelle_video.llm if pixelle_video else None
|
||||
|
||||
style_guard = StyleGuard(llm_service=llm_service)
|
||||
anchor = await style_guard.extract_style_anchor(actual_path)
|
||||
|
||||
style_schema = StyleAnchorSchema(
|
||||
|
||||
Reference in New Issue
Block a user