Spaces:
Running
Running
| export enum ProductCategory { | |
| SHIRT = 'Shirt', | |
| PANTS = 'Pants', | |
| EYEWEAR = 'Eyewear', | |
| NECKLACE = 'Necklace', | |
| HEADWEAR = 'Headwear' | |
| } | |
| export interface Product { | |
| id: string; | |
| name: string; | |
| category: ProductCategory; | |
| price: number; | |
| imageUrl: string; | |
| description: string; | |
| } | |
| export enum AppView { | |
| CATALOG = 'CATALOG', | |
| CAMERA = 'CAMERA', | |
| RESULT = 'RESULT' | |
| } | |
| export interface TryOnRequest { | |
| product: Product; | |
| userImageBase64: string; // The captured frame | |
| } | |
| export interface TryOnResult { | |
| generatedImageBase64: string | null; | |
| loading: boolean; | |
| error: string | null; | |
| } | |