利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
Python ai-video-generatorcontent-creationffmpeginstagram-reelsllmpythonshort-videosubtitlestext-to-speechtiktokvideo-automationvideo-workflowworkflow-automationyoutube-shorts
Fix upload post platforms type annotation
Cocoon-Break5c888759800c
diff --git a/app/services/upload_post.py b/app/services/upload_post.pyindex 2c0e7101..375462cf 100644--- a/app/services/upload_post.py+++ b/app/services/upload_post.py@@ -4,6 +4,8 @@ Upload-Post API integration for cross-posting videos to TikTok and Instagram.Docs: https://docs.upload-post.com"""import os+from typing import Optional+import requestsfrom loguru import loggerfrom app.config import config@@ -31,7 +33,7 @@ class UploadPostService:self,video_path: str,title: str,- platforms: list = None,+ platforms: Optional[list] = None,privacy_level: str = "PUBLIC_TO_EVERYONE") -> dict:"""@@ -132,7 +134,7 @@ class UploadPostService:upload_post_service = UploadPostService()-def cross_post_video(video_path: str, title: str, platforms: list = None) -> dict:+def cross_post_video(video_path: str, title: str, platforms: Optional[list] = None) -> dict:"""Convenience function to cross-post a video.