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'
11
11
import PictureReview from ' ./PictureReview.vue'
12
12
// Import Pintura styles
13
13
import ' @pqina/pintura/pintura.css'
14
- import { getChatCompletion } from ' ~/api'
15
14
16
15
const store = new LazyStore (' settings.json' )
17
16
@@ -53,17 +52,6 @@ function onSave() {
53
52
appWindow .close ()
54
53
}
55
54
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
-
67
55
onMounted (async () => {
68
56
const val = await store .get <{ value: string }>(' screenshot_path' )
69
57
appWindow .listen <string >(' image-prepared' , (event : any ) => {
@@ -96,9 +84,6 @@ onMounted(async () => {
96
84
<Button class-name =" btn-solid" :anim =" true" @click =" onSave" >
97
85
Save
98
86
</Button >
99
- <Button class-name =" btn-solid" :anim =" true" @click =" getImageAnalysis" >
100
- Fetch
101
- </Button >
102
87
</div >
103
88
</div >
104
89
</template >
You can’t perform that action at this time.
0 commit comments