jbilcke-hf HF staff commited on
Commit
24bea92
1 Parent(s): 24fa60f

use the mini header

Browse files
README.md CHANGED
@@ -1,5 +1,6 @@
1
  ---
2
  title: AI Tube
 
3
  emoji: 🍿
4
  colorFrom: red
5
  colorTo: red
 
1
  ---
2
  title: AI Tube
3
+ header: mini
4
  emoji: 🍿
5
  colorFrom: red
6
  colorTo: red
src/clap/types.ts CHANGED
@@ -1,6 +1,6 @@
1
 
2
- export type ClapSegmentCategory = "render" | "preview" | "characters" | "location" | "time" | "era" | "lighting" | "weather" | "action" | "music" | "sound" | "dialogue" | "style" | "camera" | "generic"
3
- export type ClapOutputType = "text" | "movement" | "image" | "video" | "audio"
4
  export type ClapSegmentStatus =
5
  | "to_generate"
6
  | "to_interpolate"
 
1
 
2
+ export type ClapSegmentCategory = "render" | "preview" | "transition" | "characters" | "location" | "time" | "era" | "lighting" | "weather" | "action" | "music" | "sound" | "dialogue" | "style" | "camera" | "generic"
3
+ export type ClapOutputType = "text" | "animation" | "transition" | "image" | "video" | "audio"
4
  export type ClapSegmentStatus =
5
  | "to_generate"
6
  | "to_interpolate"
src/lib/getClapAssetSourceType.ts CHANGED
@@ -1,8 +1,13 @@
1
  import { ClapAssetSource } from "@/clap/types"
2
 
3
- export function getClapAssetSourceSource(input: string): ClapAssetSource {
4
 
5
- const str = `${input || ""}`
 
 
 
 
 
6
  if (str.startsWith("https://") || str.startsWith("http://")) {
7
  return "REMOTE"
8
  }
@@ -16,9 +21,5 @@ export function getClapAssetSourceSource(input: string): ClapAssetSource {
16
  return "DATA"
17
  }
18
 
19
- if (!str) {
20
- return "EMPTY"
21
- }
22
-
23
  return "PROMPT"
24
  }
 
1
  import { ClapAssetSource } from "@/clap/types"
2
 
3
+ export function getClapAssetSourceSource(input: string = ""): ClapAssetSource {
4
 
5
+ const str = `${input || ""}`.trim()
6
+
7
+ if (!str || !str.length) {
8
+ return "EMPTY"
9
+ }
10
+
11
  if (str.startsWith("https://") || str.startsWith("http://")) {
12
  return "REMOTE"
13
  }
 
21
  return "DATA"
22
  }
23
 
 
 
 
 
24
  return "PROMPT"
25
  }