Spaces:
Runtime error
Runtime error
Update app/static/index.html
Browse files- app/static/index.html +4 -8
app/static/index.html
CHANGED
|
@@ -829,18 +829,14 @@
|
|
| 829 |
</thead>
|
| 830 |
<tbody>
|
| 831 |
${data.results.map(result => {
|
| 832 |
-
const
|
| 833 |
-
let colorClass = 'high';
|
| 834 |
-
if (percentage < 30) colorClass = 'low';
|
| 835 |
-
else if (percentage < 70) colorClass = 'medium';
|
| 836 |
-
|
| 837 |
return `
|
| 838 |
<tr>
|
| 839 |
<td>${result.detector_name}</td>
|
| 840 |
-
<td class="ai-
|
| 841 |
</tr>
|
| 842 |
-
|
| 843 |
-
|
| 844 |
</tbody>
|
| 845 |
</table>
|
| 846 |
</div>
|
|
|
|
| 829 |
</thead>
|
| 830 |
<tbody>
|
| 831 |
${data.results.map(result => {
|
| 832 |
+
const label = result.ai_probability > 0.5 ? "AI-generated" : "Human-written";
|
|
|
|
|
|
|
|
|
|
|
|
|
| 833 |
return `
|
| 834 |
<tr>
|
| 835 |
<td>${result.detector_name}</td>
|
| 836 |
+
<td class="ai-label">${label}</td>
|
| 837 |
</tr>
|
| 838 |
+
`;
|
| 839 |
+
}).join('')}
|
| 840 |
</tbody>
|
| 841 |
</table>
|
| 842 |
</div>
|