Caption Image
Upload Image {currentImage ? 'or use generated image' : ''}
Caption Type
{#each captionTypes as type}
{type}
{/each}
Caption Length
{#each captionLengths as length}
{length.charAt(0).toUpperCase() + length.slice(1).replace('-', ' ')}
{/each}
{isGenerating ? 'Generating Caption…' : 'Generate Caption'}
{#if error}
{error}
{/if} {#if result}
Generated Caption
Type:
{result.type}
Length:
{result.length}
Caption:
{result.caption}
{/if}