From 468938d4925e9e87bec44d7ec3ee05d960943f08 Mon Sep 17 00:00:00 2001 From: linyqh Date: Tue, 13 Aug 2024 00:26:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3sh=E8=84=9A=E6=9C=AC=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E8=AF=86=E5=88=ABWindows=E6=8D=A2=E8=A1=8C=E7=AC=A6?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=9B=E5=AE=8C=E5=96=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/public/index.html | 14 ++++++++++---- webui.sh | 11 ++--------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/resource/public/index.html b/resource/public/index.html index 3115df0..9de1f1c 100644 --- a/resource/public/index.html +++ b/resource/public/index.html @@ -6,14 +6,20 @@

NarratoAI

-https://github.com/harry0703/NarratoAI +项目地址:https://github.com/linyqh/NarratoAI +
+ +webui 地址:http://127.0.0.1:8501 +
+api swagger 地址:http://127.0.0.1:8080/docs +
+

- 只需提供一个视频 主题 或 关键词 ,就可以全自动生成视频文案、视频素材、视频字幕、视频背景音乐,然后合成一个高清的短视频。 + NarratoAI 是一个自动化影视解说工具,基于LLM实现文案撰写、自动化视频剪辑、配音和字幕生成的一站式流程,助力高效内容创作。

- Simply provide a topic or keyword for a video, and it will automatically generate the video copy, video materials, - video subtitles, and video background music before synthesizing a high-definition short video. + NarratoAI is an automated film and television commentary tool that implements a one-stop process of copywriting, automated video editing, dubbing and subtitle generation based on LLM, facilitating efficient content creation.

\ No newline at end of file diff --git a/webui.sh b/webui.sh index bc77421..0d45755 100644 --- a/webui.sh +++ b/webui.sh @@ -1,5 +1,4 @@ #!/bin/bash - # 从环境变量中加载VPN代理的配置URL vpn_proxy_url="$VPN_PROXY_URL" # 检查是否成功加载 @@ -10,7 +9,6 @@ fi # 使用VPN代理进行一些操作,比如通过代理下载文件 export http_proxy="$vpn_proxy_url" export https_proxy="$vpn_proxy_url" - # 创建链接和路径的数组 declare -A urls_paths=( ["https://zenodo.org/records/13293144/files/MicrosoftYaHeiBold.ttc"]="./resource/fonts" @@ -32,7 +30,6 @@ declare -A urls_paths=( ["https://zenodo.org/records/13293150/files/output010.mp3"]="./resource/songs" # 添加更多链接及其对应的路径 ) - # 循环下载所有文件并保存到指定路径 for url in "${!urls_paths[@]}"; do output_dir="${urls_paths[$url]}" @@ -42,15 +39,11 @@ for url in "${!urls_paths[@]}"; do filename=$(basename "$url") # 下载文件,避免重复下载 - wget -P "$output_dir" -nc "$url" &> /dev/null || { + wget -P "$output_dir" -nc "$url" || { echo "下载失败: $url" >&2 } done - # 等待所有后台任务完成 wait - echo "所有文件已成功下载到指定目录" - - -streamlit run ./webui/Main.py --browser.serverAddress="0.0.0.0" --server.enableCORS=True --browser.gatherUsageStats=False +streamlit run ./webui/Main.py --browser.serverAddress="0.0.0.0" --server.enableCORS=True --browser.gatherUsageStats=False \ No newline at end of file