jbilcke-hf HF staff commited on
Commit
0311115
·
1 Parent(s): 1e78ba0
Files changed (1) hide show
  1. src/app/api/v1/export/route.ts +3 -1
src/app/api/v1/export/route.ts CHANGED
@@ -20,7 +20,7 @@ export async function POST(req: NextRequest, res: NextResponse) {
20
  // or rather, the non-turbo mode could be the one where we upscale
21
 
22
  // let's call our micro-service, which is currently open bar.
23
- // console.log("[api/v1/export] sending blob to ai-tube-clap-exporter.hf.space")
24
 
25
  const result = await fetch(
26
  // `http://localhost:7860?f=${format}`,
@@ -30,6 +30,8 @@ export async function POST(req: NextRequest, res: NextResponse) {
30
 
31
  const blob = await result.blob()
32
 
 
 
33
  return new NextResponse(blob, {
34
  status: 200,
35
  headers: new Headers({ "content-type": `video/${format}` }),
 
20
  // or rather, the non-turbo mode could be the one where we upscale
21
 
22
  // let's call our micro-service, which is currently open bar.
23
+ console.log("[api/v1/export] sending clap to ai-tube-clap-exporter.hf.space")
24
 
25
  const result = await fetch(
26
  // `http://localhost:7860?f=${format}`,
 
30
 
31
  const blob = await result.blob()
32
 
33
+ console.log(`[api/v1/export] got a response (result: ${result.status} ${result.statusText})`)
34
+
35
  return new NextResponse(blob, {
36
  status: 200,
37
  headers: new Headers({ "content-type": `video/${format}` }),