riffusion-app/types.ts

28 lines
463 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;
// num_inference_steps: number;
// seed_image_id: number;
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;
}