File size: 1,091 Bytes
384e020
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Prediction Results</title>
    <link
      rel="stylesheet"
      href="{{ url_for('static', filename='styles.css') }}"
    />
  </head>
  <body class="page">
    <div class="container">
      <h1 class="title">Prediction Results</h1>
      <p class="result-text">Fake Percentage: {{ fake_percentage }}%</p>
      <p class="result-text">Result Type: {{ result_type }}</p>
      <p class="result-text">Fake Frame Count: {{ fake_frame_count }}</p>
      <div class="plot-container">
        {{ plot_html|safe }}
        <!-- Embed Plotly plot here -->
      </div>
      <div class="intervals-list">
        <h2>Fake Frame Intervals:</h2>
        {% if fake_frame_intervals == "No Frame" %}
        <p>No Frame</p>
        {% else %}
        <ul>
          {% for start, end in fake_frame_intervals %}
          <li>{{ start }}s - {{ end }}s</li>
          {% endfor %}
        </ul>
        {% endif %}
      </div>
      <a href="/" class="return-button">Analyze Another File</a>
    </div>
  </body>
</html>