Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CharIP-Electron
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ali
CharIP-Electron
Commits
0a290374
Commit
0a290374
authored
Jan 02, 2024
by
ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: console.time
parent
ca96fb29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ShowPhoto.vue
src/renderer/screens/ShowPhoto.vue
+5
-0
No files found.
src/renderer/screens/ShowPhoto.vue
View file @
0a290374
...
@@ -338,8 +338,10 @@ async function llmLoop(question: string) {
...
@@ -338,8 +338,10 @@ async function llmLoop(question: string) {
photoRole
!
.
off
(
'asyncAnswer'
,
onAsyncAnswer
)
photoRole
!
.
off
(
'asyncAnswer'
,
onAsyncAnswer
)
photoRole
!
.
on
(
'asyncAnswer'
,
onAsyncAnswer
)
photoRole
!
.
on
(
'asyncAnswer'
,
onAsyncAnswer
)
let
index
=
0
let
index
=
0
let
timeKey
=
'0 -------------------->'
while
(
true
)
{
while
(
true
)
{
console
.
time
(
timeKey
)
// @ts-ignore
// @ts-ignore
if
(
microphoneState
.
value
===
'input'
||
microphoneState
.
value
===
'waitInput'
)
{
if
(
microphoneState
.
value
===
'input'
||
microphoneState
.
value
===
'waitInput'
)
{
break
break
...
@@ -369,6 +371,9 @@ async function llmLoop(question: string) {
...
@@ -369,6 +371,9 @@ async function llmLoop(question: string) {
if
(
newList
.
length
===
0
&&
isEnd
)
return
if
(
newList
.
length
===
0
&&
isEnd
)
return
if
(
newList
.
length
===
0
)
continue
if
(
newList
.
length
===
0
)
continue
console
.
timeEnd
(
timeKey
)
timeKey
=
`
${(
parseInt
(
timeKey
)
+
1
)}
-------------------->`
;
for
(
let
i
=
0
;
i
<
newList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
newList
.
length
;
i
++
)
{
// @ts-ignore
// @ts-ignore
if
(
microphoneState
.
value
===
'input'
||
microphoneState
.
value
===
'waitInput'
)
{
if
(
microphoneState
.
value
===
'input'
||
microphoneState
.
value
===
'waitInput'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment