TheFrogGod commited on
Commit
bfb5205
·
verified ·
1 Parent(s): ce5fcef

Update web/analyzer.html

Browse files
Files changed (1) hide show
  1. web/analyzer.html +8 -1
web/analyzer.html CHANGED
@@ -367,6 +367,12 @@
367
  : data.Detected_Anomolies
368
  ? [data.Detected_Anomolies]
369
  : [];
 
 
 
 
 
 
370
  recsOutput.innerHTML = recs.length
371
  ? recs.map(renderRecCard).join("")
372
  : "No recommendations found.";
@@ -377,6 +383,7 @@
377
  report_date: new Date(),
378
  ocr_text: extractedText,
379
  anomalies: JSON.stringify(recs),
 
380
  });
381
  }
382
  loadingEl.textContent = "Analysis complete.";
@@ -422,4 +429,4 @@
422
  };
423
  </script>
424
  </body>
425
- </html>
 
367
  : data.Detected_Anomolies
368
  ? [data.Detected_Anomolies]
369
  : [];
370
+
371
+ const measurements = Array.isArray(data.measurements)
372
+ ? data.measurements
373
+ : data.measurements
374
+ ? [data.measurements]
375
+ : [];
376
  recsOutput.innerHTML = recs.length
377
  ? recs.map(renderRecCard).join("")
378
  : "No recommendations found.";
 
383
  report_date: new Date(),
384
  ocr_text: extractedText,
385
  anomalies: JSON.stringify(recs),
386
+ measurements: JSON.stringify(measurements),
387
  });
388
  }
389
  loadingEl.textContent = "Analysis complete.";
 
429
  };
430
  </script>
431
  </body>
432
+ </html>