Spaces:
Running
Running
Commit
•
3adb71a
1
Parent(s):
637b219
better support of Clap files
Browse files- src/clap/parseClap.ts +4 -2
- src/clap/serializeClap.ts +4 -2
- src/clap/types.ts +2 -1
src/clap/parseClap.ts
CHANGED
@@ -157,11 +157,12 @@ export async function parseClap(inputStringOrBlob: string | Blob): Promise<ClapP
|
|
157 |
modelId,
|
158 |
sceneId,
|
159 |
prompt,
|
|
|
160 |
outputType,
|
161 |
renderId,
|
162 |
status,
|
163 |
assetUrl,
|
164 |
-
|
165 |
createdBy,
|
166 |
editedBy,
|
167 |
outputGain,
|
@@ -176,11 +177,12 @@ export async function parseClap(inputStringOrBlob: string | Blob): Promise<ClapP
|
|
176 |
modelId,
|
177 |
sceneId,
|
178 |
prompt,
|
|
|
179 |
outputType,
|
180 |
renderId,
|
181 |
status,
|
182 |
assetUrl,
|
183 |
-
|
184 |
createdBy,
|
185 |
editedBy,
|
186 |
outputGain,
|
|
|
157 |
modelId,
|
158 |
sceneId,
|
159 |
prompt,
|
160 |
+
label,
|
161 |
outputType,
|
162 |
renderId,
|
163 |
status,
|
164 |
assetUrl,
|
165 |
+
assetDurationInMs,
|
166 |
createdBy,
|
167 |
editedBy,
|
168 |
outputGain,
|
|
|
177 |
modelId,
|
178 |
sceneId,
|
179 |
prompt,
|
180 |
+
label,
|
181 |
outputType,
|
182 |
renderId,
|
183 |
status,
|
184 |
assetUrl,
|
185 |
+
assetDurationInMs,
|
186 |
createdBy,
|
187 |
editedBy,
|
188 |
outputGain,
|
src/clap/serializeClap.ts
CHANGED
@@ -82,11 +82,12 @@ export async function serializeClap({
|
|
82 |
modelId,
|
83 |
sceneId,
|
84 |
prompt,
|
|
|
85 |
outputType,
|
86 |
renderId,
|
87 |
status,
|
88 |
assetUrl,
|
89 |
-
|
90 |
createdBy,
|
91 |
editedBy,
|
92 |
outputGain,
|
@@ -100,11 +101,12 @@ export async function serializeClap({
|
|
100 |
modelId,
|
101 |
sceneId,
|
102 |
prompt,
|
|
|
103 |
outputType,
|
104 |
renderId,
|
105 |
status,
|
106 |
assetUrl,
|
107 |
-
|
108 |
createdBy,
|
109 |
editedBy,
|
110 |
outputGain,
|
|
|
82 |
modelId,
|
83 |
sceneId,
|
84 |
prompt,
|
85 |
+
label,
|
86 |
outputType,
|
87 |
renderId,
|
88 |
status,
|
89 |
assetUrl,
|
90 |
+
assetDurationInMs,
|
91 |
createdBy,
|
92 |
editedBy,
|
93 |
outputGain,
|
|
|
101 |
modelId,
|
102 |
sceneId,
|
103 |
prompt,
|
104 |
+
label,
|
105 |
outputType,
|
106 |
renderId,
|
107 |
status,
|
108 |
assetUrl,
|
109 |
+
assetDurationInMs,
|
110 |
createdBy,
|
111 |
editedBy,
|
112 |
outputGain,
|
src/clap/types.ts
CHANGED
@@ -113,11 +113,12 @@ export type ClapSegment = {
|
|
113 |
modelId: string
|
114 |
sceneId: string
|
115 |
prompt: string
|
|
|
116 |
outputType: ClapOutputType
|
117 |
renderId: string
|
118 |
status: ClapSegmentStatus
|
119 |
assetUrl: string
|
120 |
-
|
121 |
createdBy: ClapAuthor
|
122 |
editedBy: ClapAuthor
|
123 |
outputGain: number
|
|
|
113 |
modelId: string
|
114 |
sceneId: string
|
115 |
prompt: string
|
116 |
+
label: string
|
117 |
outputType: ClapOutputType
|
118 |
renderId: string
|
119 |
status: ClapSegmentStatus
|
120 |
assetUrl: string
|
121 |
+
assetDurationInMs: number
|
122 |
createdBy: ClapAuthor
|
123 |
editedBy: ClapAuthor
|
124 |
outputGain: number
|