INNER CODE UNIT · Python
mock_image_gen
F-R-L/forge-film · forge/webui/app.py:114
async def mock_image_gen(description: str) -> str:
await asyncio.sleep(0.05)
return ""
foundry = AssetFoundry(mock_image_gen, cache)
asset_map = await foundry.build(plan.assets)
log_fn(f"Assets built: {len(plan.assets)} asset(s)")
# Step 3: Pipeline router
progress(0.25, desc="Setting up pipeline...")
mock = MockPipeline()
if backend == "kling":
light = LightPipeline()
heavy = HeavyPipeline()
cogvideo_pipe = mock
elif backend == "cogvideo":
from forge.generation.cogvideo_pipeline import CogVideoPipeline
cogvideo_pipe = CogVideoPipeline()