trretretret commited on
Commit
8a1f0a8
·
1 Parent(s): 23c7827

Fix: Make demo results more balanced (50/50)

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -149,8 +149,8 @@
149
  document.getElementById('loading').classList.remove('show');
150
  document.getElementById('results').classList.add('show');
151
 
152
- const isReal = Math.random() > 0.025;
153
- const confidence = isReal ? (0.85 + Math.random()*0.14).toFixed(1) : (0.70 + Math.random()*0.25).toFixed(1);
154
 
155
  const pred = document.getElementById('prediction');
156
  pred.textContent = isReal ? 'REAL' : 'FAKE';
 
149
  document.getElementById('loading').classList.remove('show');
150
  document.getElementById('results').classList.add('show');
151
 
152
+ const isReal = Math.random() > 0.5;
153
+ const confidence = isReal ? (0.85 + Math.random()*0.14).toFixed(2) : (0.70 + Math.random()*0.25).toFixed(2);
154
 
155
  const pred = document.getElementById('prediction');
156
  pred.textContent = isReal ? 'REAL' : 'FAKE';