Spaces:
Runtime error
Runtime error
Commit
•
a34bbab
1
Parent(s):
ef76154
fix
Browse files- public/index.html +2 -1
public/index.html
CHANGED
@@ -129,6 +129,7 @@
|
|
129 |
}
|
130 |
|
131 |
function stopGeneration() {
|
|
|
132 |
document?.getElementById("iframe")?.contentWindow?.stop?.();
|
133 |
}
|
134 |
|
@@ -140,7 +141,7 @@
|
|
140 |
prompt: "",
|
141 |
size: 0,
|
142 |
minPromptSize: 16, // if you change this, you will need to also change in src/index.mts
|
143 |
-
timeoutInSec:
|
144 |
state: "stopped",
|
145 |
lastTokenAt: +new Date(),
|
146 |
init() {
|
|
|
129 |
}
|
130 |
|
131 |
function stopGeneration() {
|
132 |
+
console.log("stopping generation..");
|
133 |
document?.getElementById("iframe")?.contentWindow?.stop?.();
|
134 |
}
|
135 |
|
|
|
141 |
prompt: "",
|
142 |
size: 0,
|
143 |
minPromptSize: 16, // if you change this, you will need to also change in src/index.mts
|
144 |
+
timeoutInSec: 30, // time before we determine something went wrong
|
145 |
state: "stopped",
|
146 |
lastTokenAt: +new Date(),
|
147 |
init() {
|