luulinh90s's picture
update
3b0faf1
raw
history blame
3.95 kB
<!DOCTYPE html>
<html>
<head>
<title>Experiment</title>
<style>
body {
font-family: 'Roboto', sans-serif;
background: url('/static/images/background.jpg') no-repeat center center fixed;
background-size: cover;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
background-color: #ffffff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 95%;
height: 95%;
margin: 0;
text-align: center;
display: flex;
flex-direction: column;
}
h1, h2 {
color: #000000;
font-size: 24px;
}
p {
color: #000000;
font-size: 18px;
}
.visualization-container {
display: flex;
justify-content: space-between;
flex: 1;
margin: 20px 0;
}
.visualization {
width: 48%;
height: calc(100vh - 300px);
border: 1px solid #ddd;
border-radius: 5px;
overflow: hidden;
}
.question-box {
background-color: #f0f0f0;
padding: 20px;
border-radius: 10px;
margin: 20px 0;
}
.question-text {
font-size: 22px;
font-weight: bold;
color: #333;
}
.buttons {
display: flex;
justify-content: space-between;
}
button {
color: white;
padding: 15px 30px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 18px;
margin-top: 20px;
width: 48%;
transition: background-color 0.3s ease;
}
button:hover {
opacity: 0.9;
}
button[value="No-XAI"] {
background-color: gray;
}
button[value="Dater"] {
background-color: purple;
}
button[value="Chain-of-Table"] {
background-color: blue;
}
button[value="Plan-of-SQLs"] {
background-color: green;
}
</style>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<h1>{{ sample_id + 1 }} / 10</h1>
<p><strong>Task description:</strong> {{ statement }}</p>
<div class="visualization-container">
<div class="visualization">
<h2>{{ method_a }}</h2>
<iframe src="{{ visualization_a }}" width="100%" height="100%" frameborder="0"></iframe>
</div>
<div class="visualization">
<h2>{{ method_b }}</h2>
<iframe src="{{ visualization_b }}" width="100%" height="100%" frameborder="0"></iframe>
</div>
</div>
<div class="question-box">
<p class="question-text">Which explanation provides a clearer and more accurate reasoning process?</p>
</div>
<div class="buttons">
<form action="{{ url_for('feedback') }}" method="post" style="width: 48%;">
<input type="hidden" name="username" value="{{ username }}">
<button type="submit" name="feedback" value="{{ method_a }}">{{ method_a }}</button>
</form>
<form action="{{ url_for('feedback') }}" method="post" style="width: 48%;">
<input type="hidden" name="username" value="{{ username }}">
<button type="submit" name="feedback" value="{{ method_b }}">{{ method_b }}</button>
</form>
</div>
</div>
</body>
</html>