Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
text2video-frontend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周成波
text2video-frontend
Commits
81ae19df
Commit
81ae19df
authored
Mar 15, 2024
by
周成波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c7067e16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
components.d.ts
components.d.ts
+0
-1
index.vue
src/views/home/index.vue
+5
-4
No files found.
components.d.ts
View file @
81ae19df
...
...
@@ -13,7 +13,6 @@ declare module 'vue' {
ElDivider
:
typeof
import
(
'element-plus/es'
)[
'ElDivider'
]
ElForm
:
typeof
import
(
'element-plus/es'
)[
'ElForm'
]
ElFormItem
:
typeof
import
(
'element-plus/es'
)[
'ElFormItem'
]
ElIcon
:
typeof
import
(
'element-plus/es'
)[
'ElIcon'
]
ElImage
:
typeof
import
(
'element-plus/es'
)[
'ElImage'
]
ElInput
:
typeof
import
(
'element-plus/es'
)[
'ElInput'
]
ElInputNumber
:
typeof
import
(
'element-plus/es'
)[
'ElInputNumber'
]
...
...
src/views/home/index.vue
View file @
81ae19df
...
...
@@ -36,10 +36,10 @@ const sd_negative_prompt_prefix = default_data.sd_negative_prompt_prefix;
const
wen_an_llm
=
default_data
.
llms
.
tyqw_online
;
const
role_llm
=
default_data
.
llms
.
tyqw_online
;
const
role_keywords_llm
=
default_data
.
llms
.
qwen_local
;
const
tuili_llm
=
default_data
.
llms
.
qwen_local
;
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
.
qwen_local
;
// const fanyi_llm = default_data.llms.tyqw_online
;
const
voice_rate
=
ref
(
0
)
const
voice_volume
=
ref
(
0
)
...
...
@@ -136,7 +136,8 @@ const onAdaptRoles = async () => {
// const adapt_attribute_restrict = `根据这个故事:“${form.chatgpt_answer}”,你认为这个角色:“${one_role}”是“${String(attribute_options)}”中的哪一种?请返回选择的结果。\n要求:只返回选择的结果即可,不要添加其他的内容。`;
// const adapt_attribute_restrict = `你认为这个角色:“${one_role}”是“${String(attribute_options)}”中的哪一种?请返回选择的结果。\n要求:只返回选择的结果即可,不要添加其他的内容。`;
const
adapt_attribute_restrict
=
`故事全文:“
${
form
.
chatgpt_answer
}
”,请理解故事全文,然后判断:“
${
one_role
}
”是“
${
String
(
attribute_options
)}
”中的哪一种?请返回选择的结果。\n要求:只返回选择的结果即可,不要添加其他的内容。`
;
let
attribute
=
await
text2videoService
.
submitLLM
(
adapt_attribute_restrict
,
role_keywords_llm
.
api
);
let
attribute
=
await
text2videoService
.
submitLLM
(
adapt_attribute_restrict
,
role_llm
.
api
);
console
.
log
(
'dddddddd'
,
attribute
)
if
(
attribute_options
.
includes
(
attribute
))
{
form
.
chatgpt_answer_roles
.
push
({
"角色"
:
one_role
.
trim
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment