remiai3 commited on
Commit
3664697
·
verified ·
1 Parent(s): fd06ef5

Upload index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +66 -0
templates/index.html ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>T5-Small Question Answering</title>
7
+ <style>
8
+ body {
9
+ font-family: Arial, sans-serif;
10
+ max-width: 800px;
11
+ margin: 0 auto;
12
+ padding: 20px;
13
+ background-color: #f4f4f4;
14
+ }
15
+ h1 {
16
+ text-align: center;
17
+ color: #333;
18
+ }
19
+ .container {
20
+ background-color: white;
21
+ padding: 20px;
22
+ border-radius: 8px;
23
+ box-shadow: 0 0 10px rgba(0,0,0,0.1);
24
+ }
25
+ input[type="text"] {
26
+ width: 100%;
27
+ padding: 10px;
28
+ margin: 10px 0;
29
+ border: 1px solid #ccc;
30
+ border-radius: 4px;
31
+ }
32
+ input[type="submit"] {
33
+ background-color: #4CAF50;
34
+ color: white;
35
+ padding: 10px 20px;
36
+ border: none;
37
+ border-radius: 4px;
38
+ cursor: pointer;
39
+ }
40
+ input[type="submit"]:hover {
41
+ background-color: #45a049;
42
+ }
43
+ .answer {
44
+ margin-top: 20px;
45
+ padding: 10px;
46
+ background-color: #e8f4f0;
47
+ border-radius: 4px;
48
+ }
49
+ </style>
50
+ </head>
51
+ <body>
52
+ <h1>T5-Small Question Answering</h1>
53
+ <div class="container">
54
+ <form method="post">
55
+ <label for="question">Enter your question:</label>
56
+ <input type="text" id="question" name="question" placeholder="e.g., Who was the founder of the Chola Empire?" required>
57
+ <input type="submit" value="Get Answer">
58
+ </form>
59
+ {% if answer %}
60
+ <div class="answer">
61
+ <strong>Answer:</strong> {{ answer }}
62
+ </div>
63
+ {% endif %}
64
+ </div>
65
+ </body>
66
+ </html>