riffusion-app/types.ts

29 lines
487 B
TypeScript
Raw Normal View History

2022-11-23 23:08:00 -07:00
export interface PromptInput {
prompt: string;
2022-11-24 00:23:34 -07:00
seed?: number;
2022-11-23 23:08:00 -07:00
denoising?: number;
guidance?: number;
}
export interface InferenceInput {
alpha: number;
2022-11-25 22:17:29 -07:00
num_inference_steps?: number;
2022-11-26 12:30:42 -07:00
seed_image_id?: string;
2022-11-25 22:17:29 -07:00
mask_image_id?: string;
2022-11-23 23:08:00 -07:00
start: PromptInput;
end: PromptInput;
}
export interface InferenceResult {
input: InferenceInput;
counter: number;
2022-11-23 23:08:00 -07:00
// URL of the image
image: string;
// URL of the audio
audio: string;
}