File tree Expand file tree Collapse file tree 2 files changed +0
-39
lines changed
Expand file tree Collapse file tree 2 files changed +0
-39
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import Button from '~/components/Button.vue'
1111import PictureReview from ' ./PictureReview.vue'
1212// Import Pintura styles
1313import ' @pqina/pintura/pintura.css'
14- import { getChatCompletion } from ' ~/api'
1514
1615const store = new LazyStore (' settings.json' )
1716
@@ -53,17 +52,6 @@ function onSave() {
5352 appWindow .close ()
5453}
5554
56- async function getImageAnalysis() {
57- // get image base64
58- const imageBase64 = await invoke (' get_image_base64' , {
59- path: imagePath .value ,
60- })
61- console .log (" imageBase64" , imageBase64 )
62- const imageUrl = ` data:image/jpeg;base64,${imageBase64 } `
63- const response = await getChatCompletion (imageUrl )
64- console .log (' response' , response )
65- }
66-
6755onMounted (async () => {
6856 const val = await store .get <{ value: string }>(' screenshot_path' )
6957 appWindow .listen <string >(' image-prepared' , (event : any ) => {
@@ -96,9 +84,6 @@ onMounted(async () => {
9684 <Button class-name =" btn-solid" :anim =" true" @click =" onSave" >
9785 Save
9886 </Button >
99- <Button class-name =" btn-solid" :anim =" true" @click =" getImageAnalysis" >
100- Fetch
101- </Button >
10287 </div >
10388 </div >
10489</template >
You can’t perform that action at this time.
0 commit comments