| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- # Copyright (C) 2025 AIDC-AI
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- # http://www.apache.org/licenses/LICENSE-2.0
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- """
- Pixelle-Video - AI-powered video generator
- Convention-based system with unified configuration management.
- Usage:
- from pixelle_video import pixelle_video
-
- # Initialize
- await pixelle_video.initialize()
-
- # Use capabilities
- answer = await pixelle_video.llm("Explain atomic habits")
- audio = await pixelle_video.tts("Hello world")
-
- # Generate video with different pipelines
- # Standard pipeline (default)
- result = await pixelle_video.generate_video(
- text="如何提高学习效率",
- n_scenes=5
- )
-
- # Custom pipeline (template for your own logic)
- result = await pixelle_video.generate_video(
- text=your_content,
- pipeline="custom",
- custom_param_example="custom_value"
- )
-
- # Check available pipelines
- print(pixelle_video.pipelines.keys()) # dict_keys(['standard', 'custom'])
- """
- from pixelle_video.service import PixelleVideoCore, pixelle_video
- from pixelle_video.config import config_manager
- __version__ = "0.1.0"
- __all__ = ["PixelleVideoCore", "pixelle_video", "config_manager"]
|