jbilcke-hf HF staff commited on
Commit
eae869c
1 Parent(s): 8e3d721
Files changed (1) hide show
  1. src/app/api/v1/create/route.ts +2 -2
src/app/api/v1/create/route.ts CHANGED
@@ -42,7 +42,7 @@ export async function POST(req: NextRequest) {
42
  const rawString = await predict({
43
  systemPrompt,
44
  userPrompt,
45
- nbMaxNewTokens: 1200,
46
  prefix: "```yaml\n",
47
  })
48
 
@@ -53,7 +53,7 @@ export async function POST(req: NextRequest) {
53
  console.log(`[api/generate/story] generated ${shots.length} shots`)
54
 
55
  // this is approximate - TTS generation will determine the final duration of each shot
56
- const defaultSegmentDurationInMs = 5000
57
 
58
  let currentElapsedTimeInMs = 0
59
  let currentSegmentDurationInMs = defaultSegmentDurationInMs
 
42
  const rawString = await predict({
43
  systemPrompt,
44
  userPrompt,
45
+ nbMaxNewTokens: 1400,
46
  prefix: "```yaml\n",
47
  })
48
 
 
53
  console.log(`[api/generate/story] generated ${shots.length} shots`)
54
 
55
  // this is approximate - TTS generation will determine the final duration of each shot
56
+ const defaultSegmentDurationInMs = 7000
57
 
58
  let currentElapsedTimeInMs = 0
59
  let currentSegmentDurationInMs = defaultSegmentDurationInMs