DavidBazaldua commited on
Commit
32e2fd0
·
verified ·
1 Parent(s): a965bc6

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.js +8 -5
  2. index.html +1 -1
app.js CHANGED
@@ -216,6 +216,9 @@ async function runModelPrediction() {
216
  import pyodide.http
217
  import numpy as np
218
  import joblib
 
 
 
219
 
220
  # Load the model from the same origin (no HF auth, no CORS, no gated-repo issues).
221
  # This is the same artifact as best_binary_segA_vs_segBC.joblib on Hugging Face.
@@ -258,11 +261,11 @@ label = 1 if proba_bc >= threshold else 0
258
  }
259
 
260
  /* Init */
261
- document.addEventListener('DOMContentLoaded', () => {
262
- initTabs();
263
- loadTab('tab-overview');
264
- animateCounters();
265
-
266
  // Bind live prediction button
267
  const predictBtn = document.getElementById('btn-predict');
268
  if (predictBtn) {
 
216
  import pyodide.http
217
  import numpy as np
218
  import joblib
219
+ import sklearn
220
+
221
+ print(f"[diag] sklearn={sklearn.__version__} numpy={np.__version__} joblib={joblib.__version__}")
222
 
223
  # Load the model from the same origin (no HF auth, no CORS, no gated-repo issues).
224
  # This is the same artifact as best_binary_segA_vs_segBC.joblib on Hugging Face.
 
261
  }
262
 
263
  /* Init */
264
+ document.addEventListener('DOMContentLoaded', () => {
265
+ initTabs();
266
+ loadTab('tab-overview');
267
+ animateCounters();
268
+
269
  // Bind live prediction button
270
  const predictBtn = document.getElementById('btn-predict');
271
  if (predictBtn) {
index.html CHANGED
@@ -11,7 +11,7 @@
11
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
12
 
13
  <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js"></script>
14
- <script src="https://cdn.jsdelivr.net/pyodide/v0.26.4/full/pyodide.js"></script>
15
  </head>
16
 
17
  <body>
 
11
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
12
 
13
  <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js"></script>
14
+ <script src="https://cdn.jsdelivr.net/pyodide/v0.26.0/full/pyodide.js"></script>
15
  </head>
16
 
17
  <body>