dev
ci / docker_image (push) Successful in 3m42s
ci / deploy (push) Successful in 28s

This commit is contained in:
2026-02-06 22:39:15 -06:00
parent 28968c680c
commit ee80f849bd
20 changed files with 343 additions and 49 deletions
@@ -5,6 +5,7 @@
import * as RadioGroup from '$lib/components/ui/radio-group';
import { Label } from '$lib/components/ui/label';
import * as Field from '$lib/components/ui/field';
import { fileToBase64 } from '$lib/shared';
import ImageUpload from '$lib/components/custom/image-upload/image-upload.svelte';
import { genDescription } from '$lib/db/items.remote';
@@ -19,10 +20,7 @@
async function onSelect(file: File) {
isGenerating = true;
const buffer = await file.arrayBuffer();
const base64 = btoa(
String.fromCharCode(...new Uint8Array(buffer))
);
const base64 = await fileToBase64(file);
description = await genDescription(base64);
isGenerating = false;