jbilcke-hf HF staff commited on
Commit
62e8997
·
1 Parent(s): a975a07

upgrade to @aitube/clap 0.0.6

Browse files
package-lock.json CHANGED
@@ -9,7 +9,7 @@
9
  "version": "1.0.0",
10
  "license": "Apache License",
11
  "dependencies": {
12
- "@aitube/clap": "^0.0.5",
13
  "@types/express": "^4.17.17",
14
  "@types/fluent-ffmpeg": "^2.1.24",
15
  "@types/uuid": "^9.0.2",
@@ -35,11 +35,11 @@
35
  }
36
  },
37
  "node_modules/@aitube/clap": {
38
- "version": "0.0.5",
39
- "resolved": "https://registry.npmjs.org/@aitube/clap/-/clap-0.0.5.tgz",
40
- "integrity": "sha512-oMxSU4mUOc2TvD93m0PtjsMHjkVHoTo/YecBAIVzBJC+BFm8OdSrew0I6+7ImpGl8vVSQLDdifipVpYl+43AdA==",
41
  "dependencies": {
42
- "uuid": "^9.0.1",
43
  "yaml": "^2.4.1"
44
  },
45
  "peerDependencies": {
@@ -2767,6 +2767,14 @@
2767
  "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
2768
  "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
2769
  },
 
 
 
 
 
 
 
 
2770
  "node_modules/qs": {
2771
  "version": "6.11.0",
2772
  "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
 
9
  "version": "1.0.0",
10
  "license": "Apache License",
11
  "dependencies": {
12
+ "@aitube/clap": "^0.0.6",
13
  "@types/express": "^4.17.17",
14
  "@types/fluent-ffmpeg": "^2.1.24",
15
  "@types/uuid": "^9.0.2",
 
35
  }
36
  },
37
  "node_modules/@aitube/clap": {
38
+ "version": "0.0.6",
39
+ "resolved": "https://registry.npmjs.org/@aitube/clap/-/clap-0.0.6.tgz",
40
+ "integrity": "sha512-SPo90RBnOJCmp+DqzxllNOcp38AbHSzqkAbYEudRiubqWHDF1GGqYi25gCdG7bFIWH+8evjSiiwsjkzedpbhoA==",
41
  "dependencies": {
42
+ "pure-uuid": "^1.8.1",
43
  "yaml": "^2.4.1"
44
  },
45
  "peerDependencies": {
 
2767
  "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
2768
  "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
2769
  },
2770
+ "node_modules/pure-uuid": {
2771
+ "version": "1.8.1",
2772
+ "resolved": "https://registry.npmjs.org/pure-uuid/-/pure-uuid-1.8.1.tgz",
2773
+ "integrity": "sha512-PIwHXU7NZb/wTBwUfzCSjI85tfwx6DQOm74sRLtNLH8KHsFZEvAQbBQdz7E5ij8SNSv9WGdQPWiiM6NpNIeNfA==",
2774
+ "engines": {
2775
+ "node": ">=8.0.0"
2776
+ }
2777
+ },
2778
  "node_modules/qs": {
2779
  "version": "6.11.0",
2780
  "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
package.json CHANGED
@@ -14,7 +14,7 @@
14
  "author": "Julian Bilcke <julian.bilcke@huggingface.co>",
15
  "license": "Apache License",
16
  "dependencies": {
17
- "@aitube/clap": "^0.0.5",
18
  "@types/express": "^4.17.17",
19
  "@types/fluent-ffmpeg": "^2.1.24",
20
  "@types/uuid": "^9.0.2",
 
14
  "author": "Julian Bilcke <julian.bilcke@huggingface.co>",
15
  "license": "Apache License",
16
  "dependencies": {
17
+ "@aitube/clap": "^0.0.6",
18
  "@types/express": "^4.17.17",
19
  "@types/fluent-ffmpeg": "^2.1.24",
20
  "@types/uuid": "^9.0.2",
src/core/exporters/clapWithVideosToVideoFile.mts CHANGED
@@ -1,6 +1,7 @@
1
  import { join } from "node:path"
2
 
3
  import { ClapProject, ClapSegment } from "@aitube/clap"
 
4
  import { concatenateVideosWithAudio } from "../ffmpeg/concatenateVideosWithAudio.mts"
5
  import { writeBase64ToFile } from "../files/writeBase64ToFile.mts"
6
  import { getRandomDirectory } from "../files/getRandomDirectory.mts"
@@ -9,6 +10,7 @@ import { startOfSegment1IsWithinSegment2 } from "../utils/startOfSegment1IsWithi
9
  import { deleteFile } from "../files/deleteFile.mts"
10
  import { extractBase64 } from "../base64/extractBase64.mts"
11
 
 
12
  export async function clapWithVideosToVideoFile({
13
  clap,
14
  videoSegments = [],
 
1
  import { join } from "node:path"
2
 
3
  import { ClapProject, ClapSegment } from "@aitube/clap"
4
+
5
  import { concatenateVideosWithAudio } from "../ffmpeg/concatenateVideosWithAudio.mts"
6
  import { writeBase64ToFile } from "../files/writeBase64ToFile.mts"
7
  import { getRandomDirectory } from "../files/getRandomDirectory.mts"
 
10
  import { deleteFile } from "../files/deleteFile.mts"
11
  import { extractBase64 } from "../base64/extractBase64.mts"
12
 
13
+
14
  export async function clapWithVideosToVideoFile({
15
  clap,
16
  videoSegments = [],