aikenml commited on
Commit
2154dc8
·
verified ·
1 Parent(s): 0b8e188

Update app/static/index.html

Browse files
Files changed (1) hide show
  1. 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 percentage = Math.round(result.ai_probability * 100);
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-percentage ${colorClass}">${percentage}% AI written</td>
841
  </tr>
842
- `;
843
- }).join('')}
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>