|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>T5-Small Question Answering</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
background-color: #f4f4f4;
|
|
}
|
|
h1 {
|
|
text-align: center;
|
|
color: #333;
|
|
}
|
|
.container {
|
|
background-color: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 0 10px rgba(0,0,0,0.1);
|
|
}
|
|
input[type="text"] {
|
|
width: 100%;
|
|
padding: 10px;
|
|
margin: 10px 0;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
input[type="submit"] {
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
input[type="submit"]:hover {
|
|
background-color: #45a049;
|
|
}
|
|
.answer {
|
|
margin-top: 20px;
|
|
padding: 10px;
|
|
background-color: #e8f4f0;
|
|
border-radius: 4px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>T5-Small Question Answering</h1>
|
|
<div class="container">
|
|
<form method="post">
|
|
<label for="question">Enter your question:</label>
|
|
<input type="text" id="question" name="question" placeholder="e.g., Who was the founder of the Chola Empire?" required>
|
|
<input type="submit" value="Get Answer">
|
|
</form>
|
|
{% if answer %}
|
|
<div class="answer">
|
|
<strong>Answer:</strong> {{ answer }}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</body>
|
|
</html> |