Spaces:
Runtime error
Runtime error
Commit ·
8a1f0a8
1
Parent(s): 23c7827
Fix: Make demo results more balanced (50/50)
Browse files
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.
|
| 153 |
-
const confidence = isReal ? (0.85 + Math.random()*0.14).toFixed(
|
| 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';
|