Julian Bilcke
commited on
Commit
·
c89d3c3
1
Parent(s):
a1aa607
woops
Browse files- public/index.html +2 -2
public/index.html
CHANGED
|
@@ -46,7 +46,7 @@
|
|
| 46 |
</p>
|
| 47 |
<button
|
| 48 |
class="btn disabled:text-stone-400"
|
| 49 |
-
@click="open = true, prompt = promptDraft, state = state === 'stopped' ? 'loading' : 'stopped', stopGeneration()"
|
| 50 |
:class="promptDraft.length < minPromptSize ? 'btn-neutral' : state === 'stopped' ? 'btn-accent' : 'btn-warning'"
|
| 51 |
:disabled="promptDraft.length < minPromptSize"
|
| 52 |
>
|
|
@@ -173,7 +173,7 @@
|
|
| 173 |
const timeSinceLastUpdate = (now - this.lastTokenAt) / 1000;
|
| 174 |
|
| 175 |
if (timeSinceLastUpdate > this.timeoutInSec) {
|
| 176 |
-
console.log(`no
|
| 177 |
this.state = "stopped";
|
| 178 |
}
|
| 179 |
}, 100);
|
|
|
|
| 46 |
</p>
|
| 47 |
<button
|
| 48 |
class="btn disabled:text-stone-400"
|
| 49 |
+
@click="open = true, prompt = promptDraft, state = state === 'stopped' ? 'loading' : 'stopped', state === 'streaming' ? stopGeneration(state) : true"
|
| 50 |
:class="promptDraft.length < minPromptSize ? 'btn-neutral' : state === 'stopped' ? 'btn-accent' : 'btn-warning'"
|
| 51 |
:disabled="promptDraft.length < minPromptSize"
|
| 52 |
>
|
|
|
|
| 173 |
const timeSinceLastUpdate = (now - this.lastTokenAt) / 1000;
|
| 174 |
|
| 175 |
if (timeSinceLastUpdate > this.timeoutInSec) {
|
| 176 |
+
console.log(`no changes detected for the past ${this.timeoutInSec} seconds -> considering we're done`);
|
| 177 |
this.state = "stopped";
|
| 178 |
}
|
| 179 |
}, 100);
|