利用 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
feat(ui): add Auto-Publish (Upload-Post) settings tab to WebUI
Praveen Bishnoi34ffca4f0b6b
diff --git a/webui/Main.py b/webui/Main.pyindex 2eaaba74..67c51f29 100644--- a/webui/Main.py+++ b/webui/Main.py@@ -2522,6 +2522,7 @@ def _render_settings_dialog():right_config_panel,key_backup_panel,cache_config_panel,+ publish_config_panel,left_config_panel,) = st.tabs([@@ -2529,10 +2530,62 @@ def _render_settings_dialog():tr("Material API Tab"),tr("Key Backup Tab"),tr("Cache Management Tab"),+ tr("Auto-Publish Settings"),tr("Interface Settings Tab"),])+ with publish_config_panel:+ st.write(tr("Automatically publish generated videos to social media using upload-post.com"))++ upload_post_enabled = st.checkbox(+ tr("Enable Auto-Publish"),+ value=config.app.get("upload_post_enabled", False),+ key="upload_post_enabled_checkbox"+ )+ if upload_post_enabled != config.app.get("upload_post_enabled", False):+ _set_runtime_config("app", "upload_post_enabled", upload_post_enabled)+ _set_runtime_config("app", "upload_post_auto_upload", upload_post_enabled)++ upload_post_api_key = st.text_input(+ tr("Upload-Post API Key"),+ value=config.app.get("upload_post_api_key", ""),+ type="password",+ help="Get your API key from upload-post.com",+ key="upload_post_api_key_input"+ )+ if upload_post_api_key != config.app.get("upload_post_api_key", ""):+ _set_runtime_config("app", "upload_post_api_key", upload_post_api_key)++ upload_post_username = st.text_input(+ tr("Upload-Post Username (Email)"),+ value=config.app.get("upload_post_username", ""),+ help="Your upload-post.com registered email",+ key="upload_post_username_input"+ )+ if upload_post_username != config.app.get("upload_post_username", ""):+ _set_runtime_config("app", "upload_post_username", upload_post_username)++ upload_post_platforms = st.multiselect(+ tr("Platforms"),+ options=["tiktok", "instagram", "youtube"],+ default=config.app.get("upload_post_platforms", ["tiktok", "instagram"]),+ help="Select platforms to publish to",+ key="upload_post_platforms_multiselect"+ )+ if upload_post_platforms != config.app.get("upload_post_platforms", ["tiktok", "instagram"]):+ _set_runtime_config("app", "upload_post_platforms", upload_post_platforms)++ if "youtube" in upload_post_platforms:+ upload_post_youtube_privacy_status = st.selectbox(+ tr("YouTube Privacy Status"),+ options=["public", "private", "unlisted"],+ index=["public", "private", "unlisted"].index(config.app.get("upload_post_youtube_privacy_status", "public")),+ key="upload_post_youtube_privacy_status_selectbox"+ )+ if upload_post_youtube_privacy_status != config.app.get("upload_post_youtube_privacy_status", "public"):+ _set_runtime_config("app", "upload_post_youtube_privacy_status", upload_post_youtube_privacy_status)+# 左侧面板 - 日志设置with left_config_panel:hide_log = st.checkbox(