Azidan commited on
Commit
d2a23e4
·
verified ·
1 Parent(s): 5f06e41

Create templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +34 -0
templates/index.html ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Lecture Summarizer</title>
7
+ <link rel="stylesheet" href="/static/style.css">
8
+ </head>
9
+ <body>
10
+ <div class="container">
11
+ <h1>Lecture Text Summarizer</h1>
12
+ <p>Upload a file (.pdf, .docx, .txt) or paste text for a detailed summary.</p>
13
+
14
+ <textarea id="inputText" placeholder="Paste your lecture text here..."></textarea>
15
+
16
+ <div class="upload-section">
17
+ <label for="fileUpload">Or upload a file:</label>
18
+ <input type="file" id="fileUpload" accept=".pdf,.docx,.txt">
19
+ </div>
20
+
21
+ <button id="summarizeBtn">Summarize</button>
22
+
23
+ <div id="summarySection" class="hidden">
24
+ <h2>Summary:</h2>
25
+ <pre id="summaryOutput"></pre>
26
+ </div>
27
+
28
+ <div id="loading" class="hidden">Generating summary... Please wait.</div>
29
+ <div id="error" class="hidden error"></div>
30
+ </div>
31
+
32
+ <script src="/static/script.js"></script>
33
+ </body>
34
+ </html>