Skip to content

Commit

Permalink
fix for output type
Browse files Browse the repository at this point in the history
  • Loading branch information
jbilcke-hf committed Aug 5, 2024
1 parent f4a3eff commit a88b592
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/services/assistant/updateStoryAndScene.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ClapSegment, ClapSegmentCategory, newSegment } from '@aitube/clap'
import { ClapOutputType, ClapSegment, ClapSegmentCategory, newSegment } from '@aitube/clap'
import {
AssistantMessage,
AssistantSceneSegment,
Expand Down Expand Up @@ -76,6 +76,8 @@ export async function updateStoryAndScene({
prompt: prompt,
label: prompt,
category,
// TODO put SOUND in here
// outputType: category === ClapSegmentCategory.SOUND || category === ClapSegmentCategory.MUSIC || category === ClapSegmentCategory.DIALOGUE
}

const segment: TimelineSegment = await clapSegmentToTimelineSegment(
Expand Down Expand Up @@ -150,6 +152,7 @@ export async function updateStoryAndScene({
newSegment({
...segmentProperties,
category: ClapSegmentCategory.VIDEO,
outputType: ClapOutputType.VIDEO,
})
)
)
Expand All @@ -158,6 +161,7 @@ export async function updateStoryAndScene({
newSegment({
...segmentProperties,
category: ClapSegmentCategory.STORYBOARD,
outputType: ClapOutputType.IMAGE
})
)
)
Expand Down

0 comments on commit a88b592

Please sign in to comment.