[refactor]: move apps and docs to generate(request) and from_config
DreamVerse, FastVideo Studio, the ComfyUI node, the README, and the inference docs call VideoGenerator.generate with nested requests and VideoGenerator.from_config with typed configs, and read GenerationResult attributes instead of result dict keys. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012M91wnVFmPEvJ9h39r5BH7
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9139c0411b
commit
d6ba5ced94
@@ -215,7 +215,7 @@ generator = VideoGenerator.from_pretrained(
|
||||
)
|
||||
|
||||
prompt = "A curious raccoon peers through a vibrant field of yellow sunflowers."
|
||||
video = generator.generate_video(prompt, output_path="output/", save_video=True)
|
||||
video = generator.generate({"prompt": prompt, "output": {"output_path": "output/", "save_video": True}})
|
||||
```
|
||||
|
||||
### Multi-GPU with FSDP
|
||||
@@ -238,5 +238,5 @@ generator = VideoGenerator.from_pretrained(
|
||||
)
|
||||
|
||||
prompt = "A majestic lion strides across the golden savanna."
|
||||
video = generator.generate_video(prompt, output_path="output/", save_video=True)
|
||||
video = generator.generate({"prompt": prompt, "output": {"output_path": "output/", "save_video": True}})
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user