riffusion-app/types.ts

26 lines
440 B
TypeScript

export interface PromptInput {
prompt: string;
seed: number;
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;
// URL of the image
image: string;
// URL of the audio
audio: string;
}