gaurav22iiserb commited on
Commit
ff228d0
·
verified ·
1 Parent(s): 29a9a83

templates add

Browse files
Files changed (3) hide show
  1. templates/IISER.png +0 -0
  2. templates/ISl.png +0 -0
  3. templates/index.html +39 -0
templates/IISER.png ADDED
templates/ISl.png ADDED
templates/index.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>BM25 Search App</title>
7
+ <link rel="stylesheet" href="/static/css/styles.css">
8
+ </head>
9
+ <body>
10
+
11
+ <div class="container">
12
+ <img src="static/image/IISER.png" alt="Department Logo" class="logo-left">
13
+ <img src="static/image/ISL.png" alt="Institute Logo" class="logo-right">
14
+
15
+ <h1>Wikipedia Article Retriver</h1>
16
+ <form action="/search" method="post">
17
+ <label for="query">Enter your Claim:</label>
18
+ <input type="text" id="query" name="query">
19
+ <input type="submit" value="Search">
20
+ </form>
21
+ {% if error %}
22
+ <p>{{ error }}</p>
23
+ {% endif %}
24
+ {% if query %}
25
+ <h2>Results for "{{ query }}":</h2>
26
+ <div class="results">
27
+ <!--<<p>BM25 scores: {{ doc_scores }}</p>> -->
28
+ <h3>Relevent Documents:</h3>
29
+ <ul>
30
+ {% for doc in top_n_docs %}
31
+ <li>{{ doc[:600]}}</li>
32
+ {% endfor %}
33
+ </ul>
34
+ </div>
35
+ {% endif %}
36
+ </div>
37
+ </body>
38
+ </html>
39
+