luulinh90s commited on
Commit
e75202e
Β·
1 Parent(s): 465850b
Files changed (2) hide show
  1. templates/index.html +9 -1
  2. templates/introduction.html +113 -13
templates/index.html CHANGED
@@ -54,13 +54,21 @@
54
  button:hover {
55
  background-color: #45a049;
56
  }
 
 
 
 
 
57
  </style>
58
  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
59
  </head>
60
  <body>
61
  <div class="container">
62
  <h1>Trustworthy LLMs for Table QA</h1>
63
- <form id="method-form" action="/" method="post">
 
 
 
64
  <label for="username">Hi there πŸ‘‹πŸ‘‹πŸ‘‹ ! What is your name?</label>
65
  <input type="text" id="username" name="username" required>
66
  <label for="seed">What is your lucky number? πŸ€πŸ€πŸ€ </label>
 
54
  button:hover {
55
  background-color: #45a049;
56
  }
57
+ .error-message {
58
+ color: #ff0000;
59
+ margin-top: 10px;
60
+ font-size: 16px;
61
+ }
62
  </style>
63
  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
64
  </head>
65
  <body>
66
  <div class="container">
67
  <h1>Trustworthy LLMs for Table QA</h1>
68
+ {% if error %}
69
+ <div class="error-message">{{ error }}</div>
70
+ {% endif %}
71
+ <form id="method-form" action="{{ url_for('index') }}" method="post">
72
  <label for="username">Hi there πŸ‘‹πŸ‘‹πŸ‘‹ ! What is your name?</label>
73
  <input type="text" id="username" name="username" required>
74
  <label for="seed">What is your lucky number? πŸ€πŸ€πŸ€ </label>
templates/introduction.html CHANGED
@@ -200,21 +200,121 @@
200
  </div>
201
 
202
  <div class="outro">
203
- <h2>Explanation Ranking Task</h2>
204
- <p>
205
- <!-- Given an input statement, an Artificial Intelligence (AI) model will output either TRUE or FALSE.-->
206
- <!-- <strong>Your job in this Simulation task is to use the AI's explanation to guess the machine response.</strong>-->
207
- <!-- Specifically, please choose which response (Statement is TRUE/ Statement is FALSE) model would output regardless of whether you think that response is correct or not.-->
208
- You are given explanations from <strong>4</strong> different methods for an input.
209
- Please rank these explanations based on their clarity, coherence, and helpfulness in understanding the model's reasoning.
210
- Clarity Definition: How easy is the explanation to understand? Is the language clear and straightforward?
211
- Coherence Definition: Does the explanation logically flow and make sense as a whole? Are the ideas well-connected?
212
- Helpfulness in Understanding the Model's Reasoning Definition: How effectively does the explanation help you understand why the model made its decision? Does it reveal the reasoning process?
213
-
214
- Provide the ranking from best to worst (1-best and 4-worst).
215
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
  </div>
217
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  <div class="button-container">
219
  <!-- This button leads to the Attribution Explanations page -->
220
  <a href="{{ url_for('attribution') }}" class="next-button">Next</a>
 
200
  </div>
201
 
202
  <div class="outro">
203
+ <h2>Explanation Ranking</h2>
204
+ <div class="task-description">
205
+ <p class="main-instruction">
206
+ You are given explanations from <strong>4</strong> different methods for an input.
207
+ Please rank these explanations based on their clarity, coherence, and helpfulness.
208
+ </p>
209
+
210
+ <div class="criteria-list">
211
+ <div class="criterion">
212
+ <span class="criterion-name">Clarity:</span>
213
+ <span class="criterion-def">How easy is the explanation to understand? Is the language clear and straightforward?</span>
214
+ </div>
215
+
216
+ <div class="criterion">
217
+ <span class="criterion-name">Coherence:</span>
218
+ <span class="criterion-def">Does the explanation logically flow and make sense as a whole? Are the ideas well-connected?</span>
219
+ </div>
220
+
221
+ <div class="criterion">
222
+ <span class="criterion-name">Helpfulness:</span>
223
+ <span class="criterion-def">How effectively does the explanation help you understand why the model made its decision? Does it reveal the reasoning process?</span>
224
+ </div>
225
+ </div>
226
+
227
+ <div class="ranking-instruction">
228
+ <strong>Your Task:</strong> Provide the ranking from best (1) to worst (4) for each explanation method.
229
+ </div>
230
+ </div>
231
  </div>
232
 
233
+ <style>
234
+ .outro {
235
+ background-color: #f8f9fa;
236
+ padding: 25px;
237
+ border-radius: 8px;
238
+ margin: 20px 0;
239
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
240
+ }
241
+
242
+ .outro h2 {
243
+ color: #2c3e50;
244
+ font-size: 24px;
245
+ margin-bottom: 20px;
246
+ border-bottom: 2px solid #4CAF50;
247
+ padding-bottom: 10px;
248
+ }
249
+
250
+ .task-description {
251
+ line-height: 1.6;
252
+ }
253
+
254
+ .main-instruction {
255
+ font-size: 18px;
256
+ color: #333;
257
+ margin-bottom: 20px;
258
+ }
259
+
260
+ .criteria-list {
261
+ background-color: white;
262
+ padding: 20px;
263
+ border-radius: 6px;
264
+ margin: 15px 0;
265
+ border-left: 4px solid #4CAF50;
266
+ }
267
+
268
+ .criterion {
269
+ margin-bottom: 15px;
270
+ display: flex;
271
+ flex-direction: column;
272
+ gap: 5px;
273
+ }
274
+
275
+ .criterion:last-child {
276
+ margin-bottom: 0;
277
+ }
278
+
279
+ .criterion-name {
280
+ font-weight: bold;
281
+ color: #2c3e50;
282
+ font-size: 17px;
283
+ }
284
+
285
+ .criterion-def {
286
+ color: #555;
287
+ padding-left: 15px;
288
+ }
289
+
290
+ .ranking-instruction {
291
+ margin-top: 20px;
292
+ padding: 15px;
293
+ background-color: #e8f5e9;
294
+ border-radius: 6px;
295
+ font-size: 17px;
296
+ color: #2c3e50;
297
+ }
298
+
299
+ @media (max-width: 768px) {
300
+ .outro {
301
+ padding: 15px;
302
+ }
303
+
304
+ .criterion {
305
+ margin-bottom: 20px;
306
+ }
307
+
308
+ .criterion-name {
309
+ margin-bottom: 5px;
310
+ }
311
+
312
+ .criterion-def {
313
+ padding-left: 10px;
314
+ }
315
+ }
316
+ </style>
317
+
318
  <div class="button-container">
319
  <!-- This button leads to the Attribution Explanations page -->
320
  <a href="{{ url_for('attribution') }}" class="next-button">Next</a>