♻️ Refactor assets handling, add new AI images engines, add new long form videos pipeline, remove import of shorts pipeline awaiting upgrade to use new code.

This commit is contained in:
2024-04-21 21:57:16 +02:00
parent a2c6823e89
commit e9a5328d1d
38 changed files with 1492 additions and 565 deletions

View File

@@ -0,0 +1,26 @@
import moviepy as mp
from abc import abstractmethod
from ..BaseEngine import BaseEngine
class BaseStockImageEngine(BaseEngine):
"""
The base class for all Stock Image engines.
"""
@abstractmethod
def get(self, query: str, start: float, end: float) -> mp.ImageClip:
"""
Get a stock image based on a query.
Args:
query (str): The query to search for.
start (float): The starting time of the video clip.
end (float): The ending time of the video clip.
Returns:
str: The path to the saved image.
"""
...