feat: add some ai stuff

This commit is contained in:
2021-03-10 13:50:41 +01:00
parent a7851e5058
commit 578ee0d3fa
17 changed files with 438 additions and 86 deletions

View File

@ -2,7 +2,7 @@
import { Cross } from "../icons";
import { fly, fade } from "svelte/transition";
import { images as imageData, route } from "stores";
import { bufToImageUrl } from "helpers";
import { bufToImageUrl, AI } from "../helpers";
import type { Writable } from "svelte/store";
import Toast from "../components/Toast";
@ -59,6 +59,7 @@
showAnalyzerIndex = undefined;
} else {
showAnalyzerIndex = i;
//AI.analyze(img);
}
} else {
showAnalyzerIndex = undefined;