-
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8ff2d1
commit 5c344b3
Showing
33 changed files
with
2,076 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Carriers | ||
|
||
Put carrier videos here (for Live Portrait and other similar tech) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Voice files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export type ComfyIcuApiRequestRunWorkflow = { | ||
workflow_id: string | ||
prompt: string | ||
files: Record<string, any> | ||
} | ||
|
||
export type ComfyIcuApiResponseWorkflowStatus = { | ||
id: string | ||
run_time?: number | ||
status: string | ||
name?: string | ||
created_at: string | ||
output?: ComfyIcuWorkflowOutput[] | ||
project_id: string | ||
api_key_id: any | ||
device?: string | ||
} | ||
|
||
export type ComfyIcuWorkflowOutput = { | ||
filename: string | ||
url: string | ||
thumbnail_url: string | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ClapInputValues, ClapWorkflow } from "@aitube/clap" | ||
|
||
export function getWorkflowInputValues(workflow: ClapWorkflow): { | ||
workflowDefaultValues: ClapInputValues | ||
workflowValues: ClapInputValues | ||
} { | ||
const workflowDefaultValues = | ||
workflow.inputFields.reduce( | ||
(acc, field) => ({ | ||
...acc, | ||
[field.id]: field.defaultValue, | ||
}), | ||
{} as ClapInputValues | ||
) | ||
|
||
const workflowValues = workflow | ||
.inputValues as ClapInputValues | ||
|
||
return { | ||
workflowDefaultValues, | ||
workflowValues | ||
} | ||
} |
Oops, something went wrong.