File size: 1,316 Bytes
d1b2e47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
38
<!DOCTYPE html>
<html>
<head>
    <title>Data Visualization</title>
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/styles.css') }}">
</head>
<body>
    <div class="header">
        <h1>Welcome to Phishing Email Detection!</h1>
        <form method="POST" action="/upload" enctype="multipart/form-data">
            <input type="file" name="file" id="file-input" accept=".txt,.eml">
            <input type="submit" value="Upload" class="button-81">
        </form>
    </div>
    <div class="container">
        <div class="box">
            {% if content %}
                <h2>{{ content }}</h2>
            {% endif %}
            <ul class="list">
                {% for feature in features %}
                <li><pre class="pretty">{{ feature }}: <p>{{ features[feature][0] }}</p></pre></li>
                {% endfor %}
            </ul>
        </div>
        <div class="box">
            <h2>Prediction</h2>
            <ul class="pretty">
                <li>Content prediction: <p>{{ pre_content }}</p></li>
                <li>Html Tag prediction: <p>{{ pre_tag }}</p></li>
                <li>Numeric prediction: <p>{{ pre_num }}</p></li>
                <li>Extra prediction: <p>{{ pre_extra }}</p></li>
            </ul>
        </div>
    </div>
</body>
</html>