File size: 898 Bytes
3f00174
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9f8ad95
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Flask App</title>
</head>
<body>
    <h1>Upload File to Detect Anomalies</h1>
    <form action="/api/anomalies" method="post" enctype="multipart/form-data">
        <label for="file">Choose an Excel file:</label>
        <input type="file" name="file" id="file" required>
        <br><br>
        <button type="submit">Submit</button>
    </form>
    <div id="results">
        {% if images %}
        <h2>Results:</h2>
        <div>
            {% for image in images %}
            <div>
                <h3>{{ image.feature }}</h3>
                <img src="data:image/png;base64,{{ image.graph }}" alt="Graph for {{ image.feature }}">
            </div>
            {% endfor %}
        </div>
        {% endif %}
    </div>
</body>
</html>