upload result.html templates
Browse files- templates/result.html +93 -0
- templates/result_text.html +11 -0
templates/result.html
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!doctype html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<title>Sentiment Analysis Results</title>
|
5 |
+
<style>
|
6 |
+
body {
|
7 |
+
font-family: Arial, sans-serif;
|
8 |
+
text-align: center;
|
9 |
+
margin: 0;
|
10 |
+
padding: 20px;
|
11 |
+
background-color: #f4f4f4;
|
12 |
+
color: #333;
|
13 |
+
}
|
14 |
+
|
15 |
+
h2 {
|
16 |
+
color: #333;
|
17 |
+
padding: 10px 0;
|
18 |
+
}
|
19 |
+
|
20 |
+
div, img {
|
21 |
+
margin-bottom: 20px;
|
22 |
+
}
|
23 |
+
|
24 |
+
button {
|
25 |
+
background-color: #000000; /* Green */
|
26 |
+
border: none;
|
27 |
+
color: white;
|
28 |
+
padding: 15px 32px;
|
29 |
+
text-align: center;
|
30 |
+
text-decoration: none;
|
31 |
+
display: inline-block;
|
32 |
+
font-size: 16px;
|
33 |
+
margin: 4px 2px;
|
34 |
+
cursor: pointer;
|
35 |
+
border-radius: 8px;
|
36 |
+
}
|
37 |
+
|
38 |
+
table {
|
39 |
+
margin: auto;
|
40 |
+
border-collapse: collapse;
|
41 |
+
width: 80%;
|
42 |
+
}
|
43 |
+
|
44 |
+
th, td {
|
45 |
+
border: 1px solid #ddd;
|
46 |
+
padding: 8px;
|
47 |
+
text-align: left;
|
48 |
+
}
|
49 |
+
|
50 |
+
th {
|
51 |
+
background-color: #000000;
|
52 |
+
color: white;
|
53 |
+
}
|
54 |
+
|
55 |
+
tr:nth-child(even) {background-color: #f2f2f2;}
|
56 |
+
|
57 |
+
img {
|
58 |
+
max-width: 100%;
|
59 |
+
height: auto;
|
60 |
+
}
|
61 |
+
</style>
|
62 |
+
</head>
|
63 |
+
<body>
|
64 |
+
<h2>Sentiment Analysis Summary</h2>
|
65 |
+
|
66 |
+
<div>{{ summary|safe }}</div>
|
67 |
+
|
68 |
+
<!-- Display the plot -->
|
69 |
+
<h2>Summary Plot</h2>
|
70 |
+
<img src="data:image/png;base64,{{ plot_url }}" alt="Sentiment Analysis Plot">
|
71 |
+
|
72 |
+
<h2>Detailed Results</h2>
|
73 |
+
{% for table in tables %}
|
74 |
+
{{ titles[loop.index] }}
|
75 |
+
{{ table|safe }}
|
76 |
+
{% endfor %}
|
77 |
+
<!-- Print Button -->
|
78 |
+
<div>
|
79 |
+
<button onclick="window.print()">Print Report</button>
|
80 |
+
</div>
|
81 |
+
<div></div>
|
82 |
+
<br>
|
83 |
+
|
84 |
+
<a href="/">Back to Home</a>
|
85 |
+
<br>
|
86 |
+
<div class="footer">
|
87 |
+
Project by Philip Obiorah & Supervised by: Prof. Hongbo Du<br>
|
88 |
+
Submitted to the University of Buckingham, in partial fulfilment of the requirements for the degree of Master of Science in Applied Data Science.<br>
|
89 |
+
© 2023 University of Buckingham. All rights reserved.<br>
|
90 |
+
<small>Last updated: <time datetime="2023-12-15">December 15, 2023</time>.</small>
|
91 |
+
</body>
|
92 |
+
</html>
|
93 |
+
|
templates/result_text.html
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!doctype html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<title>Sentiment Analysis Result</title>
|
5 |
+
</head>
|
6 |
+
<body>
|
7 |
+
<h2>Sentiment Analysis Result</h2>
|
8 |
+
<p>Sentiment: {{ sentiment }}</p>
|
9 |
+
<a href="/">Back to Home</a>
|
10 |
+
</body>
|
11 |
+
</html>
|