ikraamkb commited on
Commit
29a7c2f
·
verified ·
1 Parent(s): 654ebda

Delete templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +0 -46
templates/index.html DELETED
@@ -1,46 +0,0 @@
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>AI-powered QA</title>
7
- <link rel="stylesheet" type="text/css" href="/static/app.css">
8
- </head>
9
- <body>
10
- <h1>Ask a Question!</h1>
11
-
12
- <!-- Document QA Form -->
13
- <h2>Question about Document:</h2>
14
- <form action="/question-answering-doc" method="post" enctype="multipart/form-data">
15
- <label for="question">Question:</label>
16
- <input type="text" id="question" name="question" required><br><br>
17
-
18
- <label for="file">Upload a Document (PDF, DOCX, PPTX):</label>
19
- <input type="file" id="file" name="file" accept=".pdf,.docx,.pptx" required><br><br>
20
-
21
- <button type="submit">Submit</button>
22
- </form>
23
-
24
- <!-- Image QA Form -->
25
- <h2>Question about Image:</h2>
26
- <form action="/question-answering-image" method="post" enctype="multipart/form-data">
27
- <label for="image_question">Question:</label>
28
- <input type="text" id="image_question" name="question" required><br><br>
29
-
30
- <label for="image_file">Upload an Image:</label>
31
- <input type="file" id="image_file" name="image_file" accept="image/*" required><br><br>
32
-
33
- <button type="submit">Submit</button>
34
- </form>
35
-
36
- <!-- Display Answer -->
37
- {% if answer %}
38
- <h2>Answer: {{ answer }}</h2>
39
- {% endif %}
40
-
41
- {% if image_text %}
42
- <h3>Extracted Text from Image:</h3>
43
- <p>{{ image_text }}</p>
44
- {% endif %}
45
- </body>
46
- </html>