Skip to content

Commit 14ce496

Browse files
committed
新增:增加大模型配置
1 parent b7fca3c commit 14ce496

File tree

385 files changed

+3512
-29
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

385 files changed

+3512
-29
lines changed

.github/workflows/main-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Main
1+
name: MainBuild
22

33
on:
44
push:
@@ -31,7 +31,7 @@ jobs:
3131
- name: Build Prepare (macOS)
3232
if: runner.os == 'macOS'
3333
run: |
34-
brew install python-setuptools
34+
brew install python-setup tools
3535
3636
- name: Cert Prepare (macOS)
3737
if: runner.os == 'macOS'

.github/workflows/pro-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Pro
1+
name: ProBuild
22

33
on:
44
push:

.github/workflows/tag-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Tag
1+
name: TagRelease
22

33
on:
44
push:

README.md

Lines changed: 5 additions & 3 deletions

electron/aigcserver/server-MuseTalk.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ export const ServerMuseTalk: ServerContext = {
100100
"httpUrl": shellController ? this.url() : null,
101101
"functions": {
102102
"videoGen": {
103-
"param": [
104-
105-
]
103+
"param": []
106104
},
107105
}
108106
}
@@ -141,6 +139,7 @@ export const ServerMuseTalk: ServerContext = {
141139
id: data.id,
142140
mode: 'local',
143141
modelConfig: {
142+
type: 'videoGen',
144143
video: data.videoFile,
145144
audio: data.soundFile,
146145
box: -7

electron/mapi/storage/main.ts

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,23 @@ const set = async (group: string, key: string, value: any) => {
6161
save(group)
6262
}
6363

64+
const read = async (group: string, defaultValue: any) => {
65+
await waitAppEnvReady()
66+
loadIfNeed(group)
67+
if (!(group in data)) {
68+
data[group] = defaultValue
69+
save(group)
70+
}
71+
return data[group]
72+
}
73+
74+
const write = async (group: string, value: any) => {
75+
await waitAppEnvReady()
76+
loadIfNeed(group)
77+
data[group] = value
78+
save(group)
79+
}
80+
6481
ipcMain.handle('storage:all', async (event, group: string) => {
6582
return await all(group)
6683
})
@@ -73,10 +90,20 @@ ipcMain.handle('storage:set', async (event, group: string, key: string, value: a
7390
return await set(group, key, value)
7491
})
7592

93+
ipcMain.handle('storage:read', async (event, group: string, defaultValue: any) => {
94+
return await read(group, defaultValue)
95+
})
96+
97+
ipcMain.handle('storage:write', async (event, group: string, value: any) => {
98+
return await write(group, value)
99+
})
100+
76101
export const StorageMain = {
77102
all,
78103
get,
79-
set
104+
set,
105+
read,
106+
write,
80107
}
81108

82109
export default StorageMain

electron/mapi/storage/render.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,18 @@ const set = async (group: string, key: string, value: any) => {
1313
return ipcRenderer.invoke('storage:set', group, key, value)
1414
}
1515

16+
const read = async (group: string, defaultValue: any = null) => {
17+
return ipcRenderer.invoke('storage:read', group, defaultValue)
18+
}
19+
20+
const write = async (group: string, value: any) => {
21+
return ipcRenderer.invoke('storage:write', group, value)
22+
}
23+
1624
export default {
1725
all,
1826
get,
19-
set
27+
set,
28+
read,
29+
write,
2030
}

src/assets/image/models/360.png

src/assets/image/models/360_dark.png

src/assets/image/models/adept.png

0 commit comments

Comments
 (0)