-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
35 lines (27 loc) · 1.11 KB
/
index.html
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
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>Spam Detection System</title>
<link href='https://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Arimo' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Hind:300' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<div class="login">
<h1>Spam⚠️ Detector for Email📧</h1>
<form action="{{ url_for('predict')}}" method="POST">
<textarea name="message" rows="6" cols="50" required="required"></textarea>
<br> </br>
<button type="submit" class="btn btn-primary btn-block btn-large">Predict</button>
<div class="results">
{% if prediction == 1%}
<h2 style="color:red;">Looking Spam⚠️, Be safe</h2>
{% elif prediction == 0%}
<h2 style="color:green;"><b>Not a Spam💚</b></h2>
{% endif %}
</div>
</form>
</div>