Spaces:
Runtime error
Runtime error
Create templates/index.html
Browse files- templates/index.html +21 -0
templates/index.html
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>Question Answering</title>
|
7 |
+
</head>
|
8 |
+
<body>
|
9 |
+
<form method="post">
|
10 |
+
<label for="question">Enter your question:</label>
|
11 |
+
<input type="text" id="question" name="question" required>
|
12 |
+
<br>
|
13 |
+
<label for="context">Enter context:</label>
|
14 |
+
<input type="text" id="context" name="context" required>
|
15 |
+
<br>
|
16 |
+
<button type="submit">Ask</button>
|
17 |
+
</form>
|
18 |
+
<br>
|
19 |
+
<p>Answer: {{ answer }}</p>
|
20 |
+
</body>
|
21 |
+
</html>
|