Spaces:
Sleeping
Sleeping
Delete templates/index_old.html
Browse files- templates/index_old.html +0 -167
templates/index_old.html
DELETED
|
@@ -1,167 +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>Query Answering System</title>
|
| 7 |
-
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
|
| 8 |
-
<style>
|
| 9 |
-
body {
|
| 10 |
-
font-family: 'Poppins', sans-serif;
|
| 11 |
-
margin: 0;
|
| 12 |
-
padding: 0;
|
| 13 |
-
background-color: #121212;
|
| 14 |
-
color: #f5f5f5;
|
| 15 |
-
display: flex;
|
| 16 |
-
justify-content: center;
|
| 17 |
-
align-items: center;
|
| 18 |
-
height: 100vh;
|
| 19 |
-
overflow: hidden;
|
| 20 |
-
}
|
| 21 |
-
|
| 22 |
-
.container {
|
| 23 |
-
background-color: #1f1f1f;
|
| 24 |
-
border-radius: 10px;
|
| 25 |
-
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
|
| 26 |
-
width: 100%;
|
| 27 |
-
max-width: 700px; /* Adjusted max-width for better fit */
|
| 28 |
-
padding: 30px; /* Reduced padding for a more compact design */
|
| 29 |
-
text-align: center;
|
| 30 |
-
margin: 20px; /* Margin added to ensure content is not touching the edges */
|
| 31 |
-
max-height: 90vh; /* Limit height to 90% of the viewport height */
|
| 32 |
-
overflow-y: auto; /* Allow scrolling if content overflows */
|
| 33 |
-
}
|
| 34 |
-
|
| 35 |
-
.header {
|
| 36 |
-
margin-bottom: 20px;
|
| 37 |
-
}
|
| 38 |
-
|
| 39 |
-
.header h1 {
|
| 40 |
-
font-size: 32px;
|
| 41 |
-
font-weight: 600;
|
| 42 |
-
margin-bottom: 10px;
|
| 43 |
-
color: #f5f5f5;
|
| 44 |
-
}
|
| 45 |
-
|
| 46 |
-
.header p {
|
| 47 |
-
font-size: 14px;
|
| 48 |
-
color: #bbb;
|
| 49 |
-
}
|
| 50 |
-
|
| 51 |
-
.form-group {
|
| 52 |
-
margin-bottom: 20px;
|
| 53 |
-
}
|
| 54 |
-
|
| 55 |
-
.form-group input[type="text"] {
|
| 56 |
-
width: 100%;
|
| 57 |
-
padding: 12px;
|
| 58 |
-
border: 2px solid #444;
|
| 59 |
-
background-color: #333;
|
| 60 |
-
color: #fff;
|
| 61 |
-
border-radius: 8px;
|
| 62 |
-
font-size: 16px;
|
| 63 |
-
transition: all 0.3s ease;
|
| 64 |
-
}
|
| 65 |
-
|
| 66 |
-
.form-group input[type="text"]:focus {
|
| 67 |
-
border-color: #007bff;
|
| 68 |
-
outline: none;
|
| 69 |
-
}
|
| 70 |
-
|
| 71 |
-
.form-group button {
|
| 72 |
-
padding: 12px 25px;
|
| 73 |
-
background-color: #007bff;
|
| 74 |
-
color: #fff;
|
| 75 |
-
border: none;
|
| 76 |
-
border-radius: 8px;
|
| 77 |
-
cursor: pointer;
|
| 78 |
-
font-size: 16px;
|
| 79 |
-
transition: background-color 0.3s ease;
|
| 80 |
-
}
|
| 81 |
-
|
| 82 |
-
.form-group button:hover {
|
| 83 |
-
background-color: #0056b3;
|
| 84 |
-
}
|
| 85 |
-
|
| 86 |
-
.answer-section {
|
| 87 |
-
margin-top: 30px;
|
| 88 |
-
background-color: #333;
|
| 89 |
-
padding: 20px;
|
| 90 |
-
border-radius: 8px;
|
| 91 |
-
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
| 92 |
-
}
|
| 93 |
-
|
| 94 |
-
.answer-section h3 {
|
| 95 |
-
font-size: 22px;
|
| 96 |
-
font-weight: 600;
|
| 97 |
-
color: #f5f5f5;
|
| 98 |
-
}
|
| 99 |
-
|
| 100 |
-
.answer {
|
| 101 |
-
padding: 15px;
|
| 102 |
-
background-color: #444;
|
| 103 |
-
border-radius: 8px;
|
| 104 |
-
font-size: 16px;
|
| 105 |
-
white-space: pre-wrap;
|
| 106 |
-
color: #ddd;
|
| 107 |
-
}
|
| 108 |
-
|
| 109 |
-
.sources {
|
| 110 |
-
margin-top: 15px;
|
| 111 |
-
font-size: 14px;
|
| 112 |
-
color: #888;
|
| 113 |
-
}
|
| 114 |
-
|
| 115 |
-
/* Responsive adjustments */
|
| 116 |
-
@media screen and (max-width: 768px) {
|
| 117 |
-
.container {
|
| 118 |
-
padding: 20px;
|
| 119 |
-
width: 90%;
|
| 120 |
-
max-width: 600px;
|
| 121 |
-
}
|
| 122 |
-
|
| 123 |
-
.header h1 {
|
| 124 |
-
font-size: 28px;
|
| 125 |
-
}
|
| 126 |
-
|
| 127 |
-
.form-group input[type="text"],
|
| 128 |
-
.form-group button {
|
| 129 |
-
font-size: 14px;
|
| 130 |
-
}
|
| 131 |
-
|
| 132 |
-
.answer-section h3 {
|
| 133 |
-
font-size: 20px;
|
| 134 |
-
}
|
| 135 |
-
}
|
| 136 |
-
</style>
|
| 137 |
-
</head>
|
| 138 |
-
<body>
|
| 139 |
-
|
| 140 |
-
<div class="container">
|
| 141 |
-
<div class="header">
|
| 142 |
-
<h1>Documnet AI</h1>
|
| 143 |
-
<p>Enter a query and get an answer based on the stored context.</p>
|
| 144 |
-
</div>
|
| 145 |
-
|
| 146 |
-
<form method="POST" action="/">
|
| 147 |
-
<div class="form-group">
|
| 148 |
-
<input type="text" name="query_text" placeholder="Enter your query" value="{{ query_text }}" required>
|
| 149 |
-
</div>
|
| 150 |
-
<div class="form-group">
|
| 151 |
-
<button type="submit">Submit</button>
|
| 152 |
-
</div>
|
| 153 |
-
</form>
|
| 154 |
-
|
| 155 |
-
{% if answer %}
|
| 156 |
-
<div class="answer-section">
|
| 157 |
-
<h3>Answer:</h3>
|
| 158 |
-
<div class="answer">{{ answer }}</div>
|
| 159 |
-
<!-- <div class="sources">
|
| 160 |
-
<strong>Sources:</strong> {{ sources }}
|
| 161 |
-
</div> -->
|
| 162 |
-
</div>
|
| 163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