Spaces:
Running
Running
Fix load clip to runclip
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -712,7 +712,7 @@ function avg(frames) {
|
|
| 712 |
/* ---- analysis loop ---- */
|
| 713 |
function analyzeNow(){
|
| 714 |
const f=feats();if(!f)return;
|
| 715 |
-
if(baseFrames.length<4){baseFrames.push(f);if(baseFrames.length===4){BASE=avg(baseFrames);toast("Baseline locked — analysis live");
|
| 716 |
let cl=classify(f,prevSt);
|
| 717 |
if(lastWx==="Rain"||lastWx==="Heavy rain"||lastWx==="Storm")cl.ratio=Math.min(1,cl.ratio+0.03);
|
| 718 |
let st=cl.st,src="engine";
|
|
|
|
| 712 |
/* ---- analysis loop ---- */
|
| 713 |
function analyzeNow(){
|
| 714 |
const f=feats();if(!f)return;
|
| 715 |
+
if(baseFrames.length<4){baseFrames.push(f);if(baseFrames.length===4){BASE=avg(baseFrames);toast("Baseline locked — analysis live");runCLIP()}return}
|
| 716 |
let cl=classify(f,prevSt);
|
| 717 |
if(lastWx==="Rain"||lastWx==="Heavy rain"||lastWx==="Storm")cl.ratio=Math.min(1,cl.ratio+0.03);
|
| 718 |
let st=cl.st,src="engine";
|