Skip to content

Commit a8b123f

Browse files
ArjunArjun
authored andcommitted
wip: remove api analysis image
1 parent 65596bc commit a8b123f

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

src/api/index.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/pages/preview/App.vue

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import Button from '~/components/Button.vue'
1111
import PictureReview from './PictureReview.vue'
1212
// Import Pintura styles
1313
import '@pqina/pintura/pintura.css'
14-
import { getChatCompletion } from '~/api'
1514
1615
const 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-
6755
onMounted(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>

0 commit comments

Comments
 (0)