mirror of
https://github.com/Paillat-dev/viralfactory.git
synced 2026-01-02 01:06:19 +00:00
♻️ ✨ 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:
26
src/engines/StockImageEngine/BaseStockImageEngine.py
Normal file
26
src/engines/StockImageEngine/BaseStockImageEngine.py
Normal 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.
|
||||
"""
|
||||
...
|
||||
Reference in New Issue
Block a user