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
c0bbf709
Commit
c0bbf709
authored
1 year ago
by
周成波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大改了一波
parent
53878490
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1039 additions
and
116 deletions
+1039
-116
components.d.ts
components.d.ts
+0
-2
waiting.png
src/assets/waiting.png
+0
-0
useManyValues.ts
src/views/home/compositions/useManyValues.ts
+36
-4
index--bak20240301.vue
src/views/home/index--bak20240301.vue
+752
-0
index.vue
src/views/home/index.vue
+241
-104
index_en.vue
src/views/home/index_en.vue
+8
-6
lib.wm.api.d.ts
typings/types/wm/lib.wm.api.d.ts
+2
-0
No files found.
components.d.ts
View file @
c0bbf709
...
@@ -8,7 +8,6 @@ export {}
...
@@ -8,7 +8,6 @@ export {}
declare
module
'vue'
{
declare
module
'vue'
{
export
interface
GlobalComponents
{
export
interface
GlobalComponents
{
ElButton
:
typeof
import
(
'element-plus/es'
)[
'ElButton'
]
ElButton
:
typeof
import
(
'element-plus/es'
)[
'ElButton'
]
ElCol
:
typeof
import
(
'element-plus/es'
)[
'ElCol'
]
ElColorPicker
:
typeof
import
(
'element-plus/es'
)[
'ElColorPicker'
]
ElColorPicker
:
typeof
import
(
'element-plus/es'
)[
'ElColorPicker'
]
ElDialog
:
typeof
import
(
'element-plus/es'
)[
'ElDialog'
]
ElDialog
:
typeof
import
(
'element-plus/es'
)[
'ElDialog'
]
ElDivider
:
typeof
import
(
'element-plus/es'
)[
'ElDivider'
]
ElDivider
:
typeof
import
(
'element-plus/es'
)[
'ElDivider'
]
...
@@ -20,7 +19,6 @@ declare module 'vue' {
...
@@ -20,7 +19,6 @@ declare module 'vue' {
ElOption
:
typeof
import
(
'element-plus/es'
)[
'ElOption'
]
ElOption
:
typeof
import
(
'element-plus/es'
)[
'ElOption'
]
ElRadio
:
typeof
import
(
'element-plus/es'
)[
'ElRadio'
]
ElRadio
:
typeof
import
(
'element-plus/es'
)[
'ElRadio'
]
ElRadioGroup
:
typeof
import
(
'element-plus/es'
)[
'ElRadioGroup'
]
ElRadioGroup
:
typeof
import
(
'element-plus/es'
)[
'ElRadioGroup'
]
ElRow
:
typeof
import
(
'element-plus/es'
)[
'ElRow'
]
ElSelect
:
typeof
import
(
'element-plus/es'
)[
'ElSelect'
]
ElSelect
:
typeof
import
(
'element-plus/es'
)[
'ElSelect'
]
ElSlider
:
typeof
import
(
'element-plus/es'
)[
'ElSlider'
]
ElSlider
:
typeof
import
(
'element-plus/es'
)[
'ElSlider'
]
ElSwitch
:
typeof
import
(
'element-plus/es'
)[
'ElSwitch'
]
ElSwitch
:
typeof
import
(
'element-plus/es'
)[
'ElSwitch'
]
...
...
This diff is collapsed.
Click to expand it.
src/assets/waiting.png
0 → 100644
View file @
c0bbf709
1.02 KB
This diff is collapsed.
Click to expand it.
src/views/home/compositions/useManyValues.ts
View file @
c0bbf709
...
@@ -48,6 +48,13 @@ export const useManyValues = () => {
...
@@ -48,6 +48,13 @@ export const useManyValues = () => {
deformed,bad anatomy,disfigured,poorly drawn face,lowres,mutated,extra limb,ugly,poorly drawn hands,missing limb,floating limbs,
deformed,bad anatomy,disfigured,poorly drawn face,lowres,mutated,extra limb,ugly,poorly drawn hands,missing limb,floating limbs,
disconnected limbs,malformed hands,out of focus,long neck,long body,gape,`
;
disconnected limbs,malformed hands,out of focus,long neck,long body,gape,`
;
const
llms
=
{
tyqw_online
:
{
'api'
:
'tyqw'
,
'name'
:
'线上通义千问'
},
baichuan
:
{
'api'
:
'langchain'
,
'name'
:
'本地baichuan2-7b'
},
qwen_local
:
{
'api'
:
'langchain'
,
'name'
:
'本地Qwen-7B-Chat'
},
chatgpt
:
{
'api'
:
'gpt'
,
'name'
:
'chatgpt'
},
};
const
horizontal_data
=
{
const
horizontal_data
=
{
task_id
:
"20240209114425596"
,
task_id
:
"20240209114425596"
,
chatgpt_prompt
:
`生成一个50字的小故事`
,
chatgpt_prompt
:
`生成一个50字的小故事`
,
...
@@ -60,7 +67,7 @@ export const useManyValues = () => {
...
@@ -60,7 +67,7 @@ export const useManyValues = () => {
const
vertical_data
=
{
const
vertical_data
=
{
task_id
:
"20240220181602687"
,
task_id
:
"20240220181602687"
,
chatgpt_prompt
:
`生成一个50字的科幻小故事,阿凡达系列`
,
chatgpt_prompt
:
`生成一个50字的科幻小故事,阿凡达系列`
,
chatgpt_answer
:
``
,
chatgpt_answer
:
`
在奇幻的熊猫王国,阿宝——不再是功夫大师,而化身为西游世界里的神秘旅者。一日,阿宝巧遇唐僧师徒四人,他们正被一只诡异黑影困扰,经书被盗,疑云密布。画面中,阿宝手持九齿钉耙,取代八戒成为护法,勇闯妖洞。峰回路转,黑影竟是被封印的悟空分身,误入歧途。阿宝凭借智慧与武力,解开误会,反转剧情,助悟空分身归于本体,携手抵御真正邪魔,恢复取经历程的和平景象。
`
,
chatgpt_answer_roles
:
[],
chatgpt_answer_roles
:
[],
adapt_result_json
:
[],
adapt_result_json
:
[],
final_video
:
``
,
final_video
:
``
,
...
@@ -181,7 +188,7 @@ export const useManyValues = () => {
...
@@ -181,7 +188,7 @@ export const useManyValues = () => {
gender
:
'Male'
,
gender
:
'Male'
,
label
:
'男,台湾腔'
,
label
:
'男,台湾腔'
,
},
},
]
]
;
const
voices_en
=
[
const
voices_en
=
[
{
{
...
@@ -189,7 +196,7 @@ export const useManyValues = () => {
...
@@ -189,7 +196,7 @@ export const useManyValues = () => {
gender
:
'Male'
,
gender
:
'Male'
,
label
:
'男,美式磁性'
,
label
:
'男,美式磁性'
,
},
},
]
]
;
const
bgm
=
[
const
bgm
=
[
{
{
...
@@ -224,12 +231,36 @@ export const useManyValues = () => {
...
@@ -224,12 +231,36 @@ export const useManyValues = () => {
value
:
'大自然'
,
value
:
'大自然'
,
label
:
'大自然'
,
label
:
'大自然'
,
},
},
]
];
const
role_attribute_options
=
[
{
value
:
'人'
,
label
:
'人'
,
},
{
value
:
'动物'
,
label
:
'动物'
,
},
{
value
:
'物品'
,
label
:
'物品'
,
},
{
value
:
'其他生物'
,
label
:
'其他生物'
,
},
{
value
:
'未知'
,
label
:
'未知'
,
},
];
return
{
return
{
screen
:
screen
,
screen
:
screen
,
sd_prompt_prefix
:
sd_prompt_prefix
,
sd_prompt_prefix
:
sd_prompt_prefix
,
sd_negative_prompt_prefix
:
sd_negative_prompt_prefix
,
sd_negative_prompt_prefix
:
sd_negative_prompt_prefix
,
llms
:
llms
,
horizontal_data
:
horizontal_data
,
horizontal_data
:
horizontal_data
,
vertical_data
:
vertical_data
,
vertical_data
:
vertical_data
,
if_need_subtitle
:
if_need_subtitle
,
if_need_subtitle
:
if_need_subtitle
,
...
@@ -239,5 +270,6 @@ export const useManyValues = () => {
...
@@ -239,5 +270,6 @@ export const useManyValues = () => {
voices_en
:
voices_en
,
voices_en
:
voices_en
,
bgm
:
bgm
,
bgm
:
bgm
,
bgm_volume_marks
:
bgm_volume_marks
,
bgm_volume_marks
:
bgm_volume_marks
,
role_attribute_options
:
role_attribute_options
,
}
}
}
}
This diff is collapsed.
Click to expand it.
src/views/home/index--bak20240301.vue
0 → 100644
View file @
c0bbf709
This diff is collapsed.
Click to expand it.
src/views/home/index.vue
View file @
c0bbf709
This diff is collapsed.
Click to expand it.
src/views/home/index_en.vue
View file @
c0bbf709
...
@@ -52,8 +52,8 @@ const bgm_volume = ref(0.3)
...
@@ -52,8 +52,8 @@ const bgm_volume = ref(0.3)
const
pwdCheckDialogVisible
=
ref
(
false
);
const
pwdCheckDialogVisible
=
ref
(
false
);
const
pwdCheckValue
=
ref
(
""
)
const
pwdCheckValue
=
ref
(
""
)
const
sub_font_color
=
ref
(
"#FFFF00"
)
const
sub_font_color
=
ref
(
"#FFFF00"
)
const
sub_font_size
=
ref
(
30
)
const
sub_font_size
=
ref
(
25
)
const
sub_position
=
ref
(
0.
2
)
const
sub_position
=
ref
(
0.
4
)
onMounted
(()
=>
{
onMounted
(()
=>
{
...
@@ -122,7 +122,9 @@ const onAdaptRoles = async () => {
...
@@ -122,7 +122,9 @@ const onAdaptRoles = async () => {
keywords
=
keywords
.
replace
(
/。/g
,
''
).
replace
(
/、/g
,
','
)
keywords
=
keywords
.
replace
(
/。/g
,
''
).
replace
(
/、/g
,
','
)
form
.
chatgpt_answer_roles
.
push
({
form
.
chatgpt_answer_roles
.
push
({
"角色"
:
one_role
.
trim
(),
"角色"
:
one_role
.
trim
(),
"角色关键词"
:
keywords
.
trim
()
+
",dressed"
"角色关键词"
:
keywords
.
trim
()
+
",dressed"
,
"角色英文关键词"
:
""
,
"属性"
:
""
,
});
});
}
}
}
}
...
@@ -645,7 +647,7 @@ const onPwdCheckDialog = () => {
...
@@ -645,7 +647,7 @@ const onPwdCheckDialog = () => {
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<span
style=
"margin: 0 20px"
>
背景音量:
</span>
<span
style=
"margin: 0 20px"
>
背景音量:
</span>
<el-slider
v-model=
"bgm_volume"
show-input
step=
"0.1"
:min=
"0"
:max=
"2"
:marks=
"default_data.bgm_volume_marks"
style=
"width: 600px"
/>
<el-slider
v-model=
"bgm_volume"
show-input
:
step=
"0.1"
:min=
"0"
:max=
"2"
:marks=
"default_data.bgm_volume_marks"
style=
"width: 600px"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<span
style=
"margin: 20px 20px"
>
字幕:
</span>
<span
style=
"margin: 20px 20px"
>
字幕:
</span>
...
@@ -656,7 +658,7 @@ const onPwdCheckDialog = () => {
...
@@ -656,7 +658,7 @@ const onPwdCheckDialog = () => {
<span
style=
"margin-left:30px;"
>
字体大小:
</span>
<span
style=
"margin-left:30px;"
>
字体大小:
</span>
<el-input-number
v-model=
"sub_font_size"
:min=
"1"
:max=
"50"
controls-position=
"right"
/>
<el-input-number
v-model=
"sub_font_size"
:min=
"1"
:max=
"50"
controls-position=
"right"
/>
<span
style=
"margin-left:30px;"
>
在屏幕上的位置:
</span>
<span
style=
"margin-left:30px;"
>
在屏幕上的位置:
</span>
<el-slider
v-model=
"sub_position"
step=
"0.1"
:min=
"0"
:max=
"1"
show-input
vertical
height=
"100px"
/>
<el-slider
v-model=
"sub_position"
:
step=
"0.1"
:min=
"0"
:max=
"1"
show-input
vertical
height=
"100px"
/>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
...
@@ -677,7 +679,7 @@ const onPwdCheckDialog = () => {
...
@@ -677,7 +679,7 @@ const onPwdCheckDialog = () => {
>
>
<el-form
:model=
"form"
>
<el-form
:model=
"form"
>
<el-form-item
label=
"密码"
>
<el-form-item
label=
"密码"
>
<el-input
v-model=
"pwdCheckValue"
autocomplete=
"off"
type=
"password"
show-password
/>
<el-input
v-model=
"pwdCheckValue"
autocomplete=
"off"
type=
"password"
show-password
@
keyup
.
enter=
"onPwdCheckDialog()"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<
template
#
footer
>
<
template
#
footer
>
...
...
This diff is collapsed.
Click to expand it.
typings/types/wm/lib.wm.api.d.ts
View file @
c0bbf709
...
@@ -24,6 +24,8 @@ declare namespace Wm {
...
@@ -24,6 +24,8 @@ declare namespace Wm {
interface
RolesItem
{
interface
RolesItem
{
"角色"
:
string
,
"角色"
:
string
,
"角色关键词"
:
string
,
"角色关键词"
:
string
,
"角色英文关键词"
:
string
,
"属性"
:
string
,
}
}
interface
UploadResult
{
interface
UploadResult
{
...
...
This diff is collapsed.
Click to expand it.
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