luulinh90s
commited on
Commit
·
a995380
1
Parent(s):
e3a9e0f
update
Browse files- app.py +2 -2
- templates/experiment.html +21 -4
app.py
CHANGED
@@ -225,9 +225,9 @@ def experiment(session_id):
|
|
225 |
visualization_path = f"{visualization_dir}/{sample['category']}/{sample['file']}"
|
226 |
|
227 |
statement = """
|
228 |
-
Please note that in select row function, starting index is 0 for Chain-of-Table 1 for Dater and Index * represents the selection of the whole Table.
|
229 |
Based on the explanation provided, what do you think the AI model will predict?
|
230 |
-
Will it predict the statement as
|
231 |
"""
|
232 |
|
233 |
return render_template('experiment.html',
|
|
|
225 |
visualization_path = f"{visualization_dir}/{sample['category']}/{sample['file']}"
|
226 |
|
227 |
statement = """
|
228 |
+
Please note that in select row function, starting index is 0 for Chain-of-Table and 1 for Dater and Index * represents the selection of the whole Table.
|
229 |
Based on the explanation provided, what do you think the AI model will predict?
|
230 |
+
Will it predict the statement as correct or wrong?
|
231 |
"""
|
232 |
|
233 |
return render_template('experiment.html',
|
templates/experiment.html
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
.container {
|
13 |
display: flex;
|
14 |
flex-direction: column;
|
15 |
-
height: 100vh;
|
16 |
width: 100vw;
|
17 |
background-color: #ffffff;
|
18 |
}
|
@@ -30,6 +30,12 @@
|
|
30 |
background-color: #e0e0e0;
|
31 |
text-align: center;
|
32 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
.visualization-container {
|
34 |
flex-grow: 1;
|
35 |
display: flex;
|
@@ -67,6 +73,12 @@
|
|
67 |
button.reject:hover {
|
68 |
background-color: #e53935;
|
69 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
/* Loader styles */
|
71 |
.overlay {
|
72 |
position: fixed;
|
@@ -106,19 +118,24 @@
|
|
106 |
<h1>{{ sample_id + 1 }} / 10</h1>
|
107 |
</div>
|
108 |
<div class="task-description">
|
109 |
-
<p><strong>Task description:</strong> {{ statement }}</p>
|
|
|
|
|
110 |
</div>
|
111 |
<div class="visualization-container">
|
112 |
<iframe src="{{ visualization }}"></iframe>
|
113 |
</div>
|
|
|
|
|
|
|
114 |
<div class="buttons">
|
115 |
<form action="{{ url_for('feedback') }}" method="post" onsubmit="showLoader()">
|
116 |
<input type="hidden" name="session_id" value="{{ session_id }}">
|
117 |
-
<button type="submit" name="prediction" value="TRUE">Model will predict
|
118 |
</form>
|
119 |
<form action="{{ url_for('feedback') }}" method="post" onsubmit="showLoader()">
|
120 |
<input type="hidden" name="session_id" value="{{ session_id }}">
|
121 |
-
<button type="submit" name="prediction" value="FALSE"
|
122 |
</form>
|
123 |
</div>
|
124 |
</div>
|
|
|
12 |
.container {
|
13 |
display: flex;
|
14 |
flex-direction: column;
|
15 |
+
min-height: 100vh;
|
16 |
width: 100vw;
|
17 |
background-color: #ffffff;
|
18 |
}
|
|
|
30 |
background-color: #e0e0e0;
|
31 |
text-align: center;
|
32 |
}
|
33 |
+
.highlight {
|
34 |
+
font-size: 1.2em;
|
35 |
+
font-weight: bold;
|
36 |
+
color: #4CAF50;
|
37 |
+
margin-top: 10px;
|
38 |
+
}
|
39 |
.visualization-container {
|
40 |
flex-grow: 1;
|
41 |
display: flex;
|
|
|
73 |
button.reject:hover {
|
74 |
background-color: #e53935;
|
75 |
}
|
76 |
+
.bottom-question {
|
77 |
+
text-align: center;
|
78 |
+
padding: 20px;
|
79 |
+
background-color: #e0e0e0;
|
80 |
+
font-weight: bold;
|
81 |
+
}
|
82 |
/* Loader styles */
|
83 |
.overlay {
|
84 |
position: fixed;
|
|
|
118 |
<h1>{{ sample_id + 1 }} / 10</h1>
|
119 |
</div>
|
120 |
<div class="task-description">
|
121 |
+
<p><strong>Task description:</strong> {{ statement | safe }}</p>
|
122 |
+
<p class="highlight">Based on the explanation provided below, what do you think the AI model will predict?
|
123 |
+
Will it predict the statement as correct or wrong?</p>
|
124 |
</div>
|
125 |
<div class="visualization-container">
|
126 |
<iframe src="{{ visualization }}"></iframe>
|
127 |
</div>
|
128 |
+
<div class="bottom-question">
|
129 |
+
<p>Will the model predict the statement as correct or wrong based on the provided explanation?</p>
|
130 |
+
</div>
|
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 will predict the Statement as correct.</button>
|
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 will predict the Statement as wrong.</button>
|
139 |
</form>
|
140 |
</div>
|
141 |
</div>
|