-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
115 lines (68 loc) · 1.36 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> Fake News </title>
<style>
body {
margin: 0;
font-family: 'PT Sans';
}
h1 {
padding: 15px;
color:azure;
margin-top: 0px;
text-align: center;
}
h3 {
color: azure;
text-align: center;
}
div.header {
background-color: blue;
position:sticky;
top:0;
width:100%;
z-index:100;
}
p {
padding: 15px;
}
p.title {
display: inline-block;
}
form {
display: inline-block;
}
p.result {
display: inline-block;
}
</style>
</head>
<body>
<div class="header">
<h1> Fake News Detector </h1>
<h3> Shaya Farahmand </h3>
<br>
</div>
<p> This web app allows you to input a title of a news article, and returns a classification of real news or fake news </p>
<p class="title"> Enter Title: </p>
<form action="/sub" method="POST">
<input type = "text" name="news">
<select name='modelType'>
<option value='dense'> Gensim Doc2Vec + ANN</option>
<option value='lstm'> Tensorflow_hub Word2Vec + LSTM</option>
<option value ='bert'> BERT </option>
</select>
<input type="submit">
</form>
<br>
{%if official %}
<p class="result"> News is: </p> {{official}}
{% endif %}
{% if con %}
<br>
<p class="result"> Probability is: </p> {{con}}
{% endif %}
</body>
</html>