Spaces:
Build error
Build error
<html> | |
<head> | |
<title>Experiment</title> | |
<style> | |
body, html { | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
font-family: 'Roboto', sans-serif; | |
} | |
.container { | |
display: flex; | |
flex-direction: column; | |
height: 100vh; | |
width: 100vw; | |
background-color: #ffffff; | |
} | |
.header { | |
padding: 20px; | |
background-color: #f0f0f0; | |
text-align: center; | |
} | |
h1 { | |
margin: 0; | |
font-size: 24px; | |
} | |
.task-description { | |
padding: 10px 20px; | |
background-color: #e0e0e0; | |
text-align: center; | |
} | |
.visualization-container { | |
flex-grow: 1; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
overflow: hidden; | |
} | |
iframe { | |
width: 100%; | |
height: 100%; | |
border: none; | |
} | |
.buttons { | |
display: flex; | |
justify-content: space-around; | |
padding: 20px; | |
background-color: #f0f0f0; | |
} | |
button { | |
background-color: #4CAF50; | |
color: white; | |
padding: 15px 30px; | |
border: none; | |
border-radius: 5px; | |
cursor: pointer; | |
font-size: 18px; | |
transition: background-color 0.3s ease; | |
} | |
button:hover { | |
background-color: #45a049; | |
} | |
button.reject { | |
background-color: #f44336; | |
} | |
button.reject:hover { | |
background-color: #e53935; | |
} | |
</style> | |
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="header"> | |
<h1>{{ sample_id + 1 }} / 10</h1> | |
</div> | |
<div class="task-description"> | |
<p><strong>Task description:</strong> {{ statement }}</p> | |
</div> | |
<div class="visualization-container"> | |
<iframe src="{{ visualization }}"></iframe> | |
</div> | |
<div class="buttons"> | |
<form action="{{ url_for('feedback') }}" method="post"> | |
<input type="hidden" name="session_id" value="{{ session_id }}"> | |
<button type="submit" name="prediction" value="TRUE">Model will predict TRUE</button> | |
</form> | |
<form action="{{ url_for('feedback') }}" method="post"> | |
<input type="hidden" name="session_id" value="{{ session_id }}"> | |
<button type="submit" name="prediction" value="FALSE" class="reject">Model will predict FALSE</button> | |
</form> | |
</div> | |
</div> | |
</body> | |
</html> |