Commit 9c33cb2b authored by 周成波's avatar 周成波

update

parent 39f8ae56
......@@ -96,70 +96,14 @@ export const useManyValues = () => {
{
"编号": "1",
"场景描述": "森林里的美味秘密是什么呢",
"场景关键词": "",
"场景关键词英文": "",
"场景关键词": "在葱郁神秘的森林深处,隐藏着一种令人垂涎欲滴的美食秘密,引得动物们纷纷探寻,交织出一段段奇妙冒险。",
"场景关键词英文": "Deep in the lush and mysterious forest, there is a mouth-watering food secret hidden, which attracts animals to explore and interweave a wonderful adventure.",
"角色": "",
"角色关键词": "",
"角色关键词英文": "",
"画面描述词": "",
"本镜配图": "src/assets/waiting.png",
"local_image_path": "",
"info": "",
"roles": []
},
{
"编号": "2",
"场景描述": "在葱郁的绿林中,一只机敏的小松鼠和一只温顺的大熊结伴而行,他们跨越山涧,攀爬树木,只为寻找传说中的金巧蒂",
"场景关键词": "",
"场景关键词英文": "",
"角色": "",
"角色关键词": "",
"角色关键词英文": "",
"画面描述词": "",
"本镜配图": "src/assets/waiting.png",
"local_image_path": "",
"info": "",
"roles": []
},
{
"编号": "3",
"场景描述": "这不仅仅是一种美食,而是一段由新鲜、柔软、香酥编织的传奇",
"场景关键词": "",
"场景关键词英文": "",
"角色": "",
"角色关键词": "",
"角色关键词英文": "",
"画面描述词": "",
"本镜配图": "src/assets/waiting.png",
"local_image_path": "",
"info": "",
"roles": []
},
{
"编号": "4",
"场景描述": "狡猾的狐狸也觊觎这份美味,但在小松鼠和大熊的智勇合作下,美味得以保全",
"场景关键词": "",
"场景关键词英文": "",
"角色": "",
"角色关键词": "",
"角色关键词英文": "",
"画面描述词": "",
"本镜配图": "src/assets/waiting.png",
"local_image_path": "",
"info": "",
"roles": []
},
{
"编号": "5",
"场景描述": "他们分享了这份酥香,友谊也在森林中流传开来",
"场景关键词": "",
"场景关键词英文": "",
"角色": "",
"角色关键词": "",
"角色关键词英文": "",
"画面描述词": "",
"本镜配图": "src/assets/waiting.png",
"local_image_path": "",
"画面描述词": "Deep in the lush and mysterious forest, there is a mouth-watering food secret hidden, which attracts animals to explore and interweave a wonderful adventure.,",
"本镜配图": "http://wm-tools-backend.frp.wmdigit.com:8888/assets/outputs/20240320160758713/img/1_resized.png?v=20240320160811071",
"local_image_path": "assets/outputs/20240320160758713/img/1_resized.png",
"info": "",
"roles": []
}
......@@ -400,7 +344,7 @@ export const useManyValues = () => {
position: 0.12,
},
],
product_pic_speech: "我们的产品正在促销热卖中,点点关注,一键三连吧~",
product_pic_speech: "",
cover_pic: "http://wm-tools-backend.frp.wmdigit.com:8888/assets/2024/03/12/10170c9e-e035-11ee-a7de-9be5c7a16c02_resized.jpg",
cover_pic_local: "assets/2024/03/12/10170c9e-e035-11ee-a7de-9be5c7a16c02_resized.jpg",
cover_pic_with_text: "http://wm-tools-backend.frp.wmdigit.com:8888/assets/2024/03/12/10170c9e-e035-11ee-a7de-9be5c7a16c02_resized_with_text.jpg",
......
......@@ -34,11 +34,11 @@ const sd_model = default_data.sd_paras.juggernautXL_v9Rdphoto2Lightning;
const sd_prompt_prefix = sd_model.sd_prompt_prefix;
const sd_negative_prompt_prefix = default_data.sd_negative_prompt_prefix;
const wen_an_llm = default_data.llms.kimi;
const role_llm = default_data.llms.kimi;
const role_keywords_llm = default_data.llms.kimi;
const tuili_llm = default_data.llms.kimi;
const tuili_keyword_llm = default_data.llms.kimi;
const wen_an_llm = default_data.llms.tyqw_online;
const role_llm = default_data.llms.tyqw_online;
const role_keywords_llm = default_data.llms.tyqw_online;
const tuili_llm = default_data.llms.tyqw_online;
const tuili_keyword_llm = default_data.llms.tyqw_online;
// const fanyi_llm = default_data.llms.tyqw_online;
const voice_rate = ref(0)
......@@ -635,13 +635,6 @@ const onGenVideo = async () => {
console.log("添加封底文字到图片")
let res = await onMarketingTemplateAddTextToPic('product');
if (!res) {return;}
if (!marketing_template.product_pic_speech) {
ElMessage({
message: "请填写封底旁白",
type: "error",
});
return;
}
}
console.log(form.adapt_result_json);
......@@ -651,7 +644,8 @@ const onGenVideo = async () => {
video_param_detail.push({
idx: "0",
text: "",
img_path: marketing_template.cover_pic_with_text_local
img_path: marketing_template.cover_pic_with_text_local,
no_text_duration: "0.1"
})
};
// 分镜
......@@ -663,11 +657,13 @@ const onGenVideo = async () => {
})
});
// 封底
if (marketing_template.if_need_product_pic == 'true' && marketing_template.product_pic_with_text_local && marketing_template.product_pic_speech) {
if (marketing_template.if_need_product_pic == 'true' && marketing_template.product_pic_with_text_local) {
// 如果text没有值,则时长默认5秒
video_param_detail.push({
idx: String(form.adapt_result_json.length + 1),
text: marketing_template.product_pic_speech,
img_path: marketing_template.product_pic_with_text_local
img_path: marketing_template.product_pic_with_text_local,
no_text_duration: "5"
})
};
let para_rate = `${voice_rate.value}%`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment