Commit f6a8833c authored by 周成波's avatar 周成波

按需求对接llm模型,人工匹配角色关键词

parent 76fbfb23
......@@ -4,11 +4,11 @@
import request from '@/api/request'
export default {
submitGpt(prompt: string): Promise<string> {
submitGpt(prompt: string, llm: string = "gpt"): Promise<string> {
if (!prompt) {
return Promise.reject("输入不能为空");
}
const post_data = { source_text: prompt, llm: 'tyqw' }
const post_data = { source_text: prompt, llm: llm }
return request.post('/text2video/text2gpt', post_data)
.then((res: any) => {
// console.log(res);
......@@ -21,7 +21,7 @@ export default {
})
.catch((err: any) => {
console.log(err);
return Promise.reject("chatgpt通讯失败");
return Promise.reject("与LLM通讯失败");
});
},
......
......@@ -174,137 +174,22 @@ export const useManyValues = () => {
const vertical_data = {
task_id: "20240220181602687",
chatgpt_prompt: ``,
chatgpt_answer: `亲爱的朋友们,干净哥我又来分享高效整理的小秘诀啦!今天要揭秘的是“10分钟快速归位法”,特别适合我们这些忙碌的上班族,在紧凑的工作日里也能轻松让家回归温馨整洁。
首先,【衣物快速归置】:一进门,将外套、包、鞋子等按照固定的位置迅速挂放或摆放,养成随手整理的习惯。这样不仅能节省寻找物品的时间,更能避免家居环境显得杂乱无章。
其次,【分区清理原则】:在10分钟内集中火力处理一个区域,如客厅茶几、餐桌或卧室床头柜等高频活动区。迅速归类杂物,不需精细分类,只需大致归入相应收纳盒或抽屉中,留待闲暇时再详细整理。
然后,【顺手清洁法则】:利用空隙时间,如烧水等待时,顺手擦拭台面;看电视广告间隙,迅速扫除地面可见的碎屑垃圾。高效利用碎片时间,达到事半功倍的效果。
最后,【可视化管理】:尽量使常用物品保持可见且易于取用,如书籍、遥控器等,这样既方便日常使用,又能减少不必要的翻找与混乱。
通过这种“10分钟快速归位法”,即使工作繁忙,也能保证家庭环境的基本整洁。记住,整理不仅仅是家务活,更是一种生活的态度和效率的体现。让我们一起享受这份整洁带来的舒适与愉悦,也别忘了,真诚对待每一处生活细节,耐心面对每一次整理挑战,你会发现高品质的生活其实就在身边!`,
chatgpt_answer_roles: [],
chatgpt_answer: `从前,有一个叫花果王的猴王,身手敏捷,机智过人。他生活在一片美丽的猴子园里,那里有无数的猴子,它们和谐相处,过着无忧无虑的生活。花果王是这片猴子园的领袖,他深受猴子的尊敬和喜爱。 有一天,花果王听说附近的人类村庄正在遭受一场大灾难。原来,是一只凶猛的妖邪之作正在祸害人类。花果王决定带领猴群去解救人类,拯救村子。他组织了一支强大的猴军,他们勇敢地踏上了征程。 经过艰苦的跋涉,猴军终于来到了人类村庄。他们看到村民们惊恐失措,生活在水深火热之中。于是,花果王毫不犹豫地挥舞金箍棒,击败了妖邪之作。人类村民们见状,纷纷拜谢猴王,将他们视为救世主。 从此,花果王和猴军的名声远扬,他们继续在人类与猴子之间传播友谊与和谐,成为了永恒的传说。`,
chatgpt_answer_roles: [{"角色": "花果王",
"角色关键词": "性别:雄性, 年龄:成年, 肤色:棕色(猴毛颜色), 衣服:无(自然皮毛), 发型:蓬松猴鬃, 发色:金色(象征其力量与地位的金箍棒颜色), 脸色:生动活泼的猴脸, 五官特点:炯炯有神的眼睛,机敏狡黠的表情, 领导力强, 勇敢且富有智慧"},
{"角色": "猴群",
"角色关键词": "性别各异, 年龄各异, 肤色:多种(根据自然猴种不同), 衣服:无(自然皮毛), 发型:自然猴毛发型各异, 发色:各自品种特征色, 脸色:生动活泼的猴脸, 五官特点:机灵好奇, 忠诚团结"},
{"角色": "人类村民",
"角色关键词": "性别各异, 年龄各异, 肤色:黄种人肤色, 衣服:传统农耕服饰, 发型:古代农夫、妇女常见发型, 发色:黑发, 脸色:因灾难而显得苍白恐慌, 五官特点:感激涕零, 对救星充满敬仰"},
{"角色": "妖邪之作",
"角色关键词": "性别:不明, 年龄:不明, 肤色:暗黑或异色, 衣服:可能为神秘或恐怖风格的装饰, 发型:怪异扭曲, 发色:可能是深红、墨黑或其他邪恶象征的颜色, 脸色:阴森可怖, 五官特点:狰狞可怕, 充满恶意和破坏力"}]
,
adapt_result_json: [
{
"编号": "1",
"场景描述": "亲爱的朋友们,干净哥我又来分享高效整理的小秘诀啦",
"场景关键词": "现代,家居环境,工作日,室内,无特定天气描述,衣物,包,鞋子,外套,茶几,餐桌,床头柜,杂物,收纳盒,抽屉,台面,地面,碎屑垃圾,书籍,遥控器",
"角色": "",
"角色关键词": "",
"画面描述词": "Dear friends, it's your trusty Clean Guy here again, ready to share some nifty tips for efficient organization in your modern home environment. On any given weekday, let's talk about taming the chaos within the indoor space, regardless of the weather outside. Imagine a scenario where clothing items are strewn about, bags and shoes clutter the entrance, while jackets drape over chairs. The coffee table is brimming with miscellany, the dining table doubles as a makeshift storage area, and bedside tables groan under the weight of disarray. Our mission involves everything from sorting out clothes and鞋子, hanging jackets in their rightful place, clearing off the clutter on the surfaces of the茶几 and餐桌. We'll be utilizing storage boxes to house miscellaneous items that often find their way onto the bedstand, inside drawers, or across desktops. We'll delve into organizing the insides of drawers to ensure they're not just a catch-all for random objects. Moreover, we'll tackle the tidying up of floors—ensuring there are no stray bits of paper or other debris lurking around. Books will be neatly arranged,遥控器 will find their designated spot, transforming your living space from a jumbled mess to an epitome of modern, organized serenity. This is all about creating a harmonious flow within your everyday living quarters, making each item have its own place and purpose, ultimately enhancing the functionality and aesthetics of your home sweet home.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240221105807455/img/1.png?v=20240221105844541",
"local_image_path": "assets/outputs/20240221105807455/img/1.png"
},
{
"编号": "2",
"场景描述": "今天要揭秘的是10分钟快速归位法,特别适合我们这些忙碌的上班族,在紧凑的工作日里也能轻松让家回归温馨整洁",
"场景关键词": "现代, 家居环境, 工作日, 紧凑时间, 温馨整洁",
"角色": "",
"角色关键词": "",
"画面描述词": "Today's reveal is the 10-minute Rapid Tidy-up Method, perfectly tailored for busy working professionals like us who juggle hectic workdays. This modern solution allows us to transform our home environment from cluttered to cozy and clean within a tight schedule, ensuring that even on the most packed weekdays, we can effortlessly restore a sense of warmth and tidiness in our living spaces.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240221105807455/img/2.png?v=20240221105908403",
"local_image_path": "assets/outputs/20240221105807455/img/2.png"
},
{
"编号": "3",
"场景描述": "首先,【衣物快速归置】:一进门,将外套、包、鞋子等按照固定的位置迅速挂放或摆放,养成随手整理的习惯",
"场景关键词": "现代, 家门入口处, 放工回家时段, 室内环境, 任何天气, 外套, 包, 鞋子, 衣帽架, 鞋柜",
"角色": "",
"角色关键词": "",
"画面描述词": "Upon arriving home after work during any weather, in a contemporary indoor setting at the entrance of the house, one immediately engages in a swift organization routine. The scene unfolds as jackets are hung meticulously on the coat rack, bags are placed on designated hooks or shelves, and shoes are neatly arranged within the shoe cabinet. This habit of promptly tidying up upon entry not only fosters a sense of order but also becomes an integral part of the daily rhythm in this modern household.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240221105807455/img/3.png?v=20240221105930104",
"local_image_path": "assets/outputs/20240221105807455/img/3.png"
},
{
"编号": "4",
"场景描述": "这样不仅能节省寻找物品的时间,更能避免家居环境显得杂乱无章",
"场景关键词": "现代,家居环境,全天候,室内,无特定天气要求,外套,包,鞋子,挂放区,摆放区",
"角色": "",
"角色关键词": "",
"画面描述词": "In a modern indoor setting with no specific weather requirements, the scene depicts an efficient organization solution that caters to the needs of a 24/7 household. This arrangement not only saves time spent on searching for items but also maintains a clutter-free and orderly home environment. It features designated areas: a hanging section for coats and jackets, a well-structured placement area for bags, and an organized rack or compartment for shoes. By allocating specific zones for these everyday items, the space remains neat and functional throughout the day, enhancing the overall living experience in the contemporary home.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240221105807455/img/4.png?v=20240221105959141",
"local_image_path": "assets/outputs/20240221105807455/img/4.png"
},
{
"编号": "5",
"场景描述": "其次,【分区清理原则】:在10分钟内集中火力处理一个区域,如客厅茶几、餐桌或卧室床头柜等高频活动区",
"场景关键词": "现代, 家居空间, 10分钟内, 高频活动区, 客厅茶几, 餐桌, 卧室床头柜",
"角色": "",
"角色关键词": "",
"画面描述词": "In a modern home setting, the 'Zone-based Cleaning Principle' advocates focusing intense cleaning efforts within a 10-minute timeframe on one specific area that experiences high frequency of activity. These areas typically include living room coffee tables, dining tables, or bedroom nightstands, which are frequently used and can accumulate clutter quickly. The idea is to efficiently sanitize and organize these hotspots for better functionality and aesthetics in the home environment.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240221105807455/img/5.png?v=20240221110025336",
"local_image_path": "assets/outputs/20240221105807455/img/5.png"
},
{
"编号": "6",
"场景描述": "迅速归类杂物,不需精细分类,只需大致归入相应收纳盒或抽屉中,留待闲暇时再详细整理",
"场景关键词": "现代,室内,下班后或休息时间,家中各活动区域,任何天气,杂物,收纳盒或抽屉",
"角色": "",
"角色关键词": "",
"画面描述词": "In the contemporary indoor setting during post-work hours or leisure time, regardless of the weather outside, one engages in a swift organization process across various activity areas within the home. The task involves loosely categorizing miscellaneous items and promptly placing them into respective storage boxes or drawers without meticulous sorting, to be further detailed and arranged at a later, more convenient time.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240221105807455/img/6.png?v=20240221110042223",
"local_image_path": "assets/outputs/20240221105807455/img/6.png"
},
{
"编号": "7",
"场景描述": "然后,【顺手清洁法则】:利用空隙时间,如烧水等待时,顺手擦拭台面;看电视广告间隙,迅速扫除地面可见的碎屑垃圾",
"场景关键词": "现代, 家居环境, 空隙时间, 厨房, 客厅, 电视广告时段",
"角色": "",
"角色关键词": "",
"画面描述词": "In a modern home setting, the 'Casual Cleaning Principle' is observed where individuals make efficient use of their idle time. For instance, while waiting for water to boil in the kitchen, one might take the opportunity to wipe down the countertop. Similarly, during commercial breaks while watching TV in the living room, one can swiftly sweep away visible crumbs or debris from the floor, thereby integrating cleaning tasks seamlessly into daily routines.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240221105807455/img/7.png?v=20240221110105094",
"local_image_path": "assets/outputs/20240221105807455/img/7.png"
},
{
"编号": "8",
"场景描述": "高效利用碎片时间,达到事半功倍的效果",
"场景关键词": "现代,家居环境,碎片时间,任何时间段,室内,家居物品(如台面、遥控器等),主人公(忙碌的上班族)",
"角色": "",
"角色关键词": "",
"画面描述词": "In a modern home environment, the protagonist, a busy working professional, is adept at optimizing their fragmented time throughout any given day. Regardless of the hour, they skillfully utilize every indoor setting and household item - whether it's the kitchen countertop doubling as a workspace during breakfast or the remote control standby time serving as a window for quick email checks. This strategic approach enables them to achieve twice the results with half the effort, effectively maximizing productivity in the midst of their fast-paced lifestyle.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240221105807455/img/8.png?v=20240221110134520",
"local_image_path": "assets/outputs/20240221105807455/img/8.png"
},
{
"编号": "9",
"场景描述": "最后,【可视化管理】:尽量使常用物品保持可见且易于取用,如书籍、遥控器等,这样既方便日常使用,又能减少不必要的翻找与混乱",
"场景关键词": "",
"角色": "",
"角色关键词": "",
"画面描述词": "Finally, implementing Visual Management means striving to keep frequently used items visible and easily accessible, such as books, remote controls, and so forth. This practice not only streamlines daily usage but also minimizes unnecessary searching and clutter, promoting a more organized living or working environment.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240221105807455/img/9.png?v=20240221110202064",
"local_image_path": "assets/outputs/20240221105807455/img/9.png"
},
{
"编号": "10",
"场景描述": "通过这种10分钟快速归位法,即使工作繁忙,也能保证家庭环境的基本整洁",
"场景关键词": "现代,家居环境,下班后或工作间隙,室内,任何天气,衣物,包,鞋子,外套,茶几,餐桌,床头柜,杂物,收纳盒,抽屉,台面,地面,碎屑垃圾,书籍,遥控器",
"角色": "",
"角色关键词": "",
"画面描述词": "In a modern home environment, regardless of the weather conditions or how busy one's work schedule is, this 10-minute rapid tidying method ensures that even during after-work hours or brief breaks, the space remains fundamentally organized and clean. Whether it involves sorting out clothes, bags, shoes, jackets strewn about on the living room couch or dining table, or clutter accumulating on bedside tables, this method efficiently streamlines the process. It entails putting away items into designated storage boxes, drawers, and shelves, clearing debris and small trash from surfaces like tabletops and floors, returning books to their rightful places, and ensuring remote controls are stowed neatly. This way, even in the midst of a hectic lifestyle, the indoors can maintain an orderly appearance.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240221105807455/img/10.png?v=20240221110234962",
"local_image_path": "assets/outputs/20240221105807455/img/10.png"
},
{
"编号": "11",
"场景描述": "记住,整理不仅仅是家务活,更是一种生活的态度和效率的体现",
"场景关键词": "现代,家居环境,日常工作日,室内,任何天气,衣物,包,鞋子,外套,茶几,餐桌,床头柜,杂物,收纳盒,抽屉,台面,地面,碎屑垃圾,书籍,遥控器",
"角色": "",
"角色关键词": "",
"画面描述词": "Remember, organizing is more than just a household chore; it embodies an attitude towards life and reflects efficiency in one's daily routine. In a modern home environment on any given workday, whether indoors or under any weather conditions, the process involves tending to items such as clothes, bags, shoes, jackets, and the like strewn across surfaces like the coffee table, dining table, bedside cabinet, and sometimes even the floor. This extends to miscellaneous items that need to be placed in storage boxes, drawers, or neatly arranged on tabletops. The task also entails clearing out debris, trash, and clutter, including books and remote controls, from all these areas, transforming the space into an orderly haven amidst the bustle of everyday life.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240221105807455/img/11.png?v=20240221110257343",
"local_image_path": "assets/outputs/20240221105807455/img/11.png"
},
{
"编号": "12",
"场景描述": "让我们一起享受这份整洁带来的舒适与愉悦,也别忘了,真诚对待每一处生活细节,耐心面对每一次整理挑战,你会发现高品质的生活其实就在身边",
"场景关键词": "现代,家居环境,下班后或休息时间,室内,任何天气,衣物,包,鞋子,收纳盒,抽屉,台面,地面,杂物,书籍,遥控器",
"角色": "",
"角色关键词": "",
"画面描述词": "Let's revel in the comfort and delight that comes with this organized haven. In our modern home environment, during those precious moments after work or during rest time, regardless of the weather outside, we find ourselves surrounded by an indoor space that reflects tranquility. Clothes are neatly hung, bags are tucked away, shoes are orderly arranged, all utilizing storage boxes, drawers, and surfaces effectively. The tabletops are clear, floors are free from clutter, and even the books and remote controls have their designated spots. Embrace every detail of life with sincerity and approach each tidying challenge with patience; it is then that you will discover the essence of high-quality living right at your fingertips.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240221105807455/img/12.png?v=20240221110326189",
"local_image_path": "assets/outputs/20240221105807455/img/12.png"
}
],
final_video: `http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240221105807455/final_video.mp4`,
final_video: ``,
};
const en_vertical_data = {
......
......@@ -27,6 +27,16 @@ const form = reactive({
const sd_prompt_prefix = default_data.sd_prompt_prefix;
const sd_negative_prompt_prefix = default_data.sd_negative_prompt_prefix;
const wenan_llm = "langchain"
const wenan_llm_name = "baichuan2-7b"
const role_llm = "langchain"
const role_llm_name = "baichuan2-7b"
const tuili_llm = "langchain"
const tuili_llm_name = "baichuan2-7b"
const fanyi_llm = "langchain"
const fanyi_llm_name = "baichuan2-7b"
onMounted(() => {
// 初始化示例数据
onChangeScreen(form.screen);
......@@ -34,7 +44,7 @@ onMounted(() => {
const onSubmitGpt = () => {
text2videoService
.submitGpt(form.chatgpt_prompt)
.submitGpt(form.chatgpt_prompt, wenan_llm)
.then((result: string) => {
console.log(form.chatgpt_prompt);
console.log(result);
......@@ -68,19 +78,26 @@ const onAdaptRoles = async () => {
要求:
角色和角色关键词要对应。
严格以如下格式返回:[{"角色":"","角色关键词":""}]`;
const keywords = await text2videoService.submitGpt(form.chatgpt_answer + "\n" + adapt_restrict);
const keywords = await text2videoService.submitGpt(form.chatgpt_answer + "\n" + adapt_restrict, role_llm);
console.log(keywords)
const keywords_obj = utils.formatJsonObj(keywords.replace(/```json/g, '').replace(/```/g, ''))
console.log(keywords_obj)
form.chatgpt_answer_roles = []
for (let item of keywords_obj) {
let newObjItem = {
"角色": JSON.stringify(item["角色"]).replace(/"/g, ''),
"角色关键词": JSON.stringify(item["角色关键词"]).replace(/"/g, '')
};
form.chatgpt_answer_roles.push(newObjItem);
if ('error' in keywords_obj) {
ElMessage({
message: "未解析到角色",
type: "error",
});
} else {
for (let item of keywords_obj) {
let newObjItem = {
"角色": JSON.stringify(item["角色"]).replace(/"/g, ''),
"角色关键词": JSON.stringify(item["角色关键词"]).replace(/"/g, '')
};
form.chatgpt_answer_roles.push(newObjItem);
}
console.log(form.chatgpt_answer_roles)
}
console.log(form.chatgpt_answer_roles)
} catch (error) {
ElMessage({
message: String(error),
......@@ -127,7 +144,7 @@ const onAdapt = async () => {
async function processScenes() {
for (const item of form.adapt_result_json) {
await onAdaptOne(item);
await delay(1000);
await delay(100);
await onDrawOne(item);
}
}
......@@ -164,25 +181,44 @@ const onAdaptOne = async (item: any) => {
指令:
请理解这个故事,针对其中的这个场景:“${item.场景描述}”,给出这个场景的:
场景关键词(年代,空间,时间段,地理环境,天气,物品,人物,镜头角度)、
角色(从所有角色中选择本场景的角色)、
角色关键词(从所有角色中选择本场景的角色关键字,原样拷贝)。
角色(从所有角色中选择本场景的角色)。
要求:
角色和角色关键词要对应。
严格以如下格式返回:[{"场景关键词":"(多个词以逗号分隔)","角色":"(角色以逗号分隔)","角色关键词":"(分别给予对应角色的关键词,多个词以逗号分隔)"}]
严格以如下格式返回:[{"场景关键词":"(多个词以逗号分隔)","角色":"(角色以逗号分隔)"}]
除了按格式返回的内容之外,不要添加其他的任何说明。`;
const keywords = await text2videoService.submitGpt("故事:\n" + form.chatgpt_answer + "\n所有角色:\n"+ JSON.stringify(form.chatgpt_answer_roles)+"\n" + adapt_restrict);
const keywords = await text2videoService.submitGpt("故事:\n" + form.chatgpt_answer + "\n所有角色:\n"+ JSON.stringify(form.chatgpt_answer_roles)+"\n" + adapt_restrict, tuili_llm);
// console.log(keywords)
const keywords_obj = utils.formatJsonObj(keywords.replace(/```json/g, '').replace(/```/g, ''))
// console.log(keywords_obj)
item.场景关键词 = JSON.stringify(keywords_obj[0].场景关键词).replace(/"/g, '');
if (form.chatgpt_answer_roles.length === 0) {
// 总角色为空
item.角色 = '';
item.角色关键词 = '';
if ('error' in keywords_obj) {
ElMessage({
message: `分镜 ${item.编号} 推理关键词失败,请重试`,
type: "error",
});
} else {
// 总角色不为空
item.角色 = JSON.stringify(keywords_obj[0].角色).replace(/"/g, '');
item.角色关键词 = JSON.stringify(keywords_obj[0].角色关键词).replace(/"/g, '');
item.场景关键词 = JSON.stringify(keywords_obj[0].场景关键词).replace(/"/g, '');
if (form.chatgpt_answer_roles.length === 0) {
// 总角色为空
item.角色 = '';
item.角色关键词 = '';
} else {
// 总角色不为空
// item.角色 = JSON.stringify(keywords_obj[0].角色).replace(/"/g, '');
// item.角色关键词 = JSON.stringify(keywords_obj[0].角色关键词).replace(/"/g, '');
const item_roles = JSON.stringify(keywords_obj[0].角色).replace(/"/g, '');
item.角色 = item_roles;
let role_kws = ""
const item_roles_arr = item_roles.split(/[,,]/);
item_roles_arr.forEach( one_item_role => {
// 人工指定角色关键词,包含则取
form.chatgpt_answer_roles.forEach(i => {
if (i["角色"].includes(one_item_role.trim()) || one_item_role.includes(i["角色"].trim())) {
role_kws = `${role_kws}${i["角色"]}${i["角色关键词"]}】`
}
})
})
item.角色关键词 = role_kws;
}
}
} catch (error) {
ElMessage({
......@@ -214,7 +250,7 @@ const onDrawOne = async (item: any) => {
const sd_describe = await text2videoService.submitGpt(
`${temp_prompt}
指令:
请理解以上内容,并返回一段英文的描述。`
请理解以上内容,并返回一段英文的描述。`, fanyi_llm
);
item.画面描述词 = sd_describe;
const sd_prompt = item.画面描述词 + "," + sd_prompt_prefix;
......@@ -380,14 +416,14 @@ const handleExceed: UploadProps['onExceed'] = (files) => {
<el-input v-model="form.chatgpt_prompt" :autosize="true" type="textarea" />
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmitGpt">生成文案</el-button>
<el-button type="primary" @click="onSubmitGpt">生成文案{{wenan_llm_name}}</el-button>
</el-form-item>
<el-form-item label="文案">
<el-input v-model="form.chatgpt_answer" :autosize="true" type="textarea" />
</el-form-item>
<!-- 角色 -->
<el-form-item>
<el-button type="primary" @click="onAdaptRoles">推理所有角色</el-button>
<el-button type="primary" @click="onAdaptRoles">推理所有角色{{role_llm_name}}</el-button>
<el-button plain @click="clean_roles">清空总角色列表</el-button>
</el-form-item>
<el-form-item label="角色">
......@@ -406,7 +442,7 @@ const handleExceed: UploadProps['onExceed'] = (files) => {
</el-form-item>
<!-- 分镜 -->
<el-form-item>
<el-button type="primary" @click="onAdapt">分镜、推理关键词、绘图</el-button>
<el-button type="primary" @click="onAdapt">分镜、推理关键词({{tuili_llm_name}})、翻译({{fanyi_llm_name}})、绘图</el-button>
</el-form-item>
<el-form-item label="分镜">
<el-table :data="form.adapt_result_json" border style="width: 100%; z-index: calc(var(--el-table-index) -1)">
......@@ -447,8 +483,8 @@ const handleExceed: UploadProps['onExceed'] = (files) => {
</template>
-->
<template v-slot="scope">
<div style="margin: 10px 0"><el-button type="primary" size="default" @click="onAdaptOne(scope.row)">重新推理<br />关键字</el-button></div>
<div style="margin: 10px 0"><el-button type="primary" size="default" @click="onDrawOne(scope.row)">重绘本镜</el-button></div>
<div style="margin: 10px 0"><el-button type="primary" size="default" @click="onAdaptOne(scope.row)">推理关键词</el-button></div>
<div style="margin: 10px 0"><el-button type="primary" size="default" @click="onDrawOne(scope.row)">翻译、绘图</el-button></div>
<el-upload
class="upload-demo"
ref="upload"
......
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