mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
Add "marketing" to block.py BlockCategory + remove comments
This commit is contained in:
@@ -143,11 +143,6 @@ class VisualMediaType(str, Enum):
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Base mixin providing shared helper methods for the Revid.ai workflow
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
class _RevidMixin:
|
||||
"""Utility mix‑in that bundles the shared webhook / polling helpers."""
|
||||
|
||||
@@ -280,8 +275,6 @@ class AIShortformVideoCreatorBlock(Block, _RevidMixin):
|
||||
test_credentials=TEST_CREDENTIALS,
|
||||
)
|
||||
|
||||
# create_webhook, create_video, check_video_status & wait_for_video live in _RevidMixin
|
||||
|
||||
def run(
|
||||
self, input_data: Input, *, credentials: APIKeyCredentials, **kwargs
|
||||
) -> BlockOutput:
|
||||
@@ -337,11 +330,6 @@ class AIShortformVideoCreatorBlock(Block, _RevidMixin):
|
||||
yield "video_url", video_url
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 2. Ad‑Maker (text & image → 30s vertical AI video)
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
class AIAdMakerVideoCreatorBlock(Block, _RevidMixin):
|
||||
"""Generates a 30‑second vertical AI advert using optional user‑supplied imagery."""
|
||||
|
||||
@@ -473,11 +461,6 @@ class AIAdMakerVideoCreatorBlock(Block, _RevidMixin):
|
||||
yield "video_url", video_url
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 3. Prompt‑to‑Video (single prompt → fully‑AI video)
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
class AIPromptToVideoCreatorBlock(Block, _RevidMixin):
|
||||
"""Turns a single creative prompt into a fully AI‑generated video."""
|
||||
|
||||
@@ -587,11 +570,6 @@ class AIPromptToVideoCreatorBlock(Block, _RevidMixin):
|
||||
yield "video_url", video_url
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 4. Screenshot‑to‑Video Advert (image + voice + avatar)
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
class AIScreenshotToVideoAdBlock(Block, _RevidMixin):
|
||||
"""Creates an advert where the supplied screenshot is narrated by an AI avatar."""
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ class BlockCategory(Enum):
|
||||
PRODUCTIVITY = "Block that helps with productivity"
|
||||
ISSUE_TRACKING = "Block that helps with issue tracking"
|
||||
MULTIMEDIA = "Block that interacts with multimedia content"
|
||||
MARKETING = "Block that helps with marketing"
|
||||
|
||||
def dict(self) -> dict[str, str]:
|
||||
return {"category": self.name, "description": self.value}
|
||||
|
||||
Reference in New Issue
Block a user