Spaces:
Build error
Build error
Commit
·
5ed21de
1
Parent(s):
a995380
update
Browse files- templates/experiment.html +17 -23
templates/experiment.html
CHANGED
|
@@ -12,29 +12,29 @@
|
|
| 12 |
.container {
|
| 13 |
display: flex;
|
| 14 |
flex-direction: column;
|
| 15 |
-
|
| 16 |
width: 100vw;
|
| 17 |
background-color: #ffffff;
|
| 18 |
}
|
| 19 |
.header {
|
| 20 |
-
padding:
|
| 21 |
background-color: #f0f0f0;
|
| 22 |
text-align: center;
|
| 23 |
}
|
| 24 |
h1 {
|
| 25 |
margin: 0;
|
| 26 |
-
font-size:
|
| 27 |
}
|
| 28 |
.task-description {
|
| 29 |
-
padding: 10px
|
| 30 |
background-color: #e0e0e0;
|
| 31 |
text-align: center;
|
| 32 |
}
|
| 33 |
.highlight {
|
| 34 |
-
font-size: 1.
|
| 35 |
font-weight: bold;
|
| 36 |
color: #4CAF50;
|
| 37 |
-
margin-top:
|
| 38 |
}
|
| 39 |
.visualization-container {
|
| 40 |
flex-grow: 1;
|
|
@@ -51,33 +51,28 @@
|
|
| 51 |
.buttons {
|
| 52 |
display: flex;
|
| 53 |
justify-content: space-around;
|
| 54 |
-
padding:
|
| 55 |
background-color: #f0f0f0;
|
| 56 |
}
|
| 57 |
button {
|
| 58 |
-
background-color: #
|
| 59 |
color: white;
|
| 60 |
-
padding:
|
| 61 |
border: none;
|
| 62 |
border-radius: 5px;
|
| 63 |
cursor: pointer;
|
| 64 |
-
font-size:
|
| 65 |
transition: background-color 0.3s ease;
|
| 66 |
}
|
| 67 |
button:hover {
|
| 68 |
-
background-color: #
|
| 69 |
-
}
|
| 70 |
-
button.reject {
|
| 71 |
-
background-color: #f44336;
|
| 72 |
-
}
|
| 73 |
-
button.reject:hover {
|
| 74 |
-
background-color: #e53935;
|
| 75 |
}
|
| 76 |
.bottom-question {
|
| 77 |
text-align: center;
|
| 78 |
-
padding:
|
| 79 |
background-color: #e0e0e0;
|
| 80 |
font-weight: bold;
|
|
|
|
| 81 |
}
|
| 82 |
/* Loader styles */
|
| 83 |
.overlay {
|
|
@@ -118,9 +113,8 @@
|
|
| 118 |
<h1>{{ sample_id + 1 }} / 10</h1>
|
| 119 |
</div>
|
| 120 |
<div class="task-description">
|
| 121 |
-
<p><strong>Task
|
| 122 |
-
<p class="highlight">Based on the explanation
|
| 123 |
-
Will it predict the statement as correct or wrong?</p>
|
| 124 |
</div>
|
| 125 |
<div class="visualization-container">
|
| 126 |
<iframe src="{{ visualization }}"></iframe>
|
|
@@ -131,11 +125,11 @@
|
|
| 131 |
<div class="buttons">
|
| 132 |
<form action="{{ url_for('feedback') }}" method="post" onsubmit="showLoader()">
|
| 133 |
<input type="hidden" name="session_id" value="{{ session_id }}">
|
| 134 |
-
<button type="submit" name="prediction" value="TRUE">Model
|
| 135 |
</form>
|
| 136 |
<form action="{{ url_for('feedback') }}" method="post" onsubmit="showLoader()">
|
| 137 |
<input type="hidden" name="session_id" value="{{ session_id }}">
|
| 138 |
-
<button type="submit" name="prediction" value="FALSE">Model
|
| 139 |
</form>
|
| 140 |
</div>
|
| 141 |
</div>
|
|
|
|
| 12 |
.container {
|
| 13 |
display: flex;
|
| 14 |
flex-direction: column;
|
| 15 |
+
height: 100vh;
|
| 16 |
width: 100vw;
|
| 17 |
background-color: #ffffff;
|
| 18 |
}
|
| 19 |
.header {
|
| 20 |
+
padding: 10px;
|
| 21 |
background-color: #f0f0f0;
|
| 22 |
text-align: center;
|
| 23 |
}
|
| 24 |
h1 {
|
| 25 |
margin: 0;
|
| 26 |
+
font-size: 20px;
|
| 27 |
}
|
| 28 |
.task-description {
|
| 29 |
+
padding: 10px;
|
| 30 |
background-color: #e0e0e0;
|
| 31 |
text-align: center;
|
| 32 |
}
|
| 33 |
.highlight {
|
| 34 |
+
font-size: 1.1em;
|
| 35 |
font-weight: bold;
|
| 36 |
color: #4CAF50;
|
| 37 |
+
margin-top: 5px;
|
| 38 |
}
|
| 39 |
.visualization-container {
|
| 40 |
flex-grow: 1;
|
|
|
|
| 51 |
.buttons {
|
| 52 |
display: flex;
|
| 53 |
justify-content: space-around;
|
| 54 |
+
padding: 10px;
|
| 55 |
background-color: #f0f0f0;
|
| 56 |
}
|
| 57 |
button {
|
| 58 |
+
background-color: #808080;
|
| 59 |
color: white;
|
| 60 |
+
padding: 10px 20px;
|
| 61 |
border: none;
|
| 62 |
border-radius: 5px;
|
| 63 |
cursor: pointer;
|
| 64 |
+
font-size: 16px;
|
| 65 |
transition: background-color 0.3s ease;
|
| 66 |
}
|
| 67 |
button:hover {
|
| 68 |
+
background-color: #707070;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
}
|
| 70 |
.bottom-question {
|
| 71 |
text-align: center;
|
| 72 |
+
padding: 10px;
|
| 73 |
background-color: #e0e0e0;
|
| 74 |
font-weight: bold;
|
| 75 |
+
font-size: 14px;
|
| 76 |
}
|
| 77 |
/* Loader styles */
|
| 78 |
.overlay {
|
|
|
|
| 113 |
<h1>{{ sample_id + 1 }} / 10</h1>
|
| 114 |
</div>
|
| 115 |
<div class="task-description">
|
| 116 |
+
<p><strong>Task:</strong> {{ statement | safe }}</p>
|
| 117 |
+
<p class="highlight">Based on the explanation below, will the AI model predict the statement as correct or wrong?</p>
|
|
|
|
| 118 |
</div>
|
| 119 |
<div class="visualization-container">
|
| 120 |
<iframe src="{{ visualization }}"></iframe>
|
|
|
|
| 125 |
<div class="buttons">
|
| 126 |
<form action="{{ url_for('feedback') }}" method="post" onsubmit="showLoader()">
|
| 127 |
<input type="hidden" name="session_id" value="{{ session_id }}">
|
| 128 |
+
<button type="submit" name="prediction" value="TRUE">Model predicts: Correct</button>
|
| 129 |
</form>
|
| 130 |
<form action="{{ url_for('feedback') }}" method="post" onsubmit="showLoader()">
|
| 131 |
<input type="hidden" name="session_id" value="{{ session_id }}">
|
| 132 |
+
<button type="submit" name="prediction" value="FALSE">Model predicts: Wrong</button>
|
| 133 |
</form>
|
| 134 |
</div>
|
| 135 |
</div>
|