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
aac7852c
Commit
aac7852c
authored
Feb 19, 2024
by
周成波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接通义千问,流程中增加总结角色环节
parent
e32979e9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
161 additions
and
193 deletions
+161
-193
text2videoService.ts
src/api/service/text2videoService.ts
+1
-1
utils.ts
src/utils/utils.ts
+1
-0
useManyValues.ts
src/views/home/compositions/useManyValues.ts
+47
-165
index.vue
src/views/home/index.vue
+107
-27
lib.wm.api.d.ts
typings/types/wm/lib.wm.api.d.ts
+5
-0
No files found.
src/api/service/text2videoService.ts
View file @
aac7852c
...
...
@@ -8,7 +8,7 @@ export default {
if
(
!
prompt
)
{
return
Promise
.
reject
(
"输入不能为空"
);
}
const
post_data
=
{
source_text
:
prompt
}
const
post_data
=
{
source_text
:
prompt
,
llm
:
'tyqw'
}
return
request
.
post
(
'/text2video/text2gpt'
,
post_data
)
.
then
((
res
:
any
)
=>
{
// console.log(res);
...
...
src/utils/utils.ts
View file @
aac7852c
...
...
@@ -34,6 +34,7 @@ export default class utils {
// 拆分文本
static
splitText
(
str
:
string
)
{
str
=
str
.
replaceAll
(
'“'
,
''
).
replaceAll
(
'”'
,
''
)
// 使用正则表达式拆分文本
let
sentences
=
str
.
split
(
/
[
!|?|。
]
/
);
// 过滤掉长度为 0 的句子
...
...
src/views/home/compositions/useManyValues.ts
View file @
aac7852c
This diff is collapsed.
Click to expand it.
src/views/home/index.vue
View file @
aac7852c
This diff is collapsed.
Click to expand it.
typings/types/wm/lib.wm.api.d.ts
View file @
aac7852c
...
...
@@ -21,4 +21,9 @@ declare namespace Wm {
"img_path"
:
string
,
}
interface
RolesItem
{
"角色"
:
string
,
"角色关键词"
:
string
,
}
}
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