mirror of
https://github.com/linyqh/NarratoAI.git
synced 2025-12-11 02:12:50 +00:00
解决sh脚本不能识别Windows换行符问题;完善接口说明
This commit is contained in:
parent
fb2b857a40
commit
468938d492
@ -6,14 +6,20 @@
|
||||
</head>
|
||||
<body>
|
||||
<h1>NarratoAI</h1>
|
||||
<a href="https://github.com/harry0703/NarratoAI">https://github.com/harry0703/NarratoAI</a>
|
||||
<a href="https://github.com/linyqh/NarratoAI">项目地址:https://github.com/linyqh/NarratoAI</a>
|
||||
<hr>
|
||||
</hr>
|
||||
<a href="http://127.0.0.1:8501">webui 地址:http://127.0.0.1:8501</a>
|
||||
<br>
|
||||
<a href="http://127.0.0.1:8080/docs">api swagger 地址:http://127.0.0.1:8080/docs</a>
|
||||
<hr>
|
||||
</hr>
|
||||
<p>
|
||||
只需提供一个视频 主题 或 关键词 ,就可以全自动生成视频文案、视频素材、视频字幕、视频背景音乐,然后合成一个高清的短视频。
|
||||
NarratoAI 是一个自动化影视解说工具,基于LLM实现文案撰写、自动化视频剪辑、配音和字幕生成的一站式流程,助力高效内容创作。
|
||||
</p>
|
||||
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
11
webui.sh
11
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
|
||||
Loading…
x
Reference in New Issue
Block a user