luulinh90s commited on
Commit
612ce70
·
1 Parent(s): 4ef1c1d
Files changed (2) hide show
  1. app.py +11 -0
  2. templates/consent.html +89 -0
app.py CHANGED
@@ -238,6 +238,17 @@ Please note that in select row function, starting index is 0 for Chain-of-Table
238
  logger.exception(f"An error occurred in the experiment route: {e}")
239
  return "An error occurred", 500
240
 
 
 
 
 
 
 
 
 
 
 
 
241
  @app.route('/subjective/<session_id>', methods=['GET', 'POST'])
242
  def subjective(session_id):
243
  if request.method == 'POST':
 
238
  logger.exception(f"An error occurred in the experiment route: {e}")
239
  return "An error occurred", 500
240
 
241
+ @app.route('/')
242
+ def root():
243
+ return redirect(url_for('consent'))
244
+
245
+ @app.route('/consent', methods=['GET', 'POST'])
246
+ def consent():
247
+ if request.method == 'POST':
248
+ # User has agreed to the consent
249
+ return redirect(url_for('introduction'))
250
+ return render_template('consent.html')
251
+
252
  @app.route('/subjective/<session_id>', methods=['GET', 'POST'])
253
  def subjective(session_id):
254
  if request.method == 'POST':
templates/consent.html ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Informed Consent - TableQA Study</title>
7
+ <style>
8
+ body {
9
+ font-family: Arial, sans-serif;
10
+ line-height: 1.6;
11
+ color: #333;
12
+ max-width: 800px;
13
+ margin: 0 auto;
14
+ padding: 20px;
15
+ }
16
+ h1 {
17
+ color: #2c3e50;
18
+ text-align: center;
19
+ }
20
+ .consent-box {
21
+ border: 1px solid #bdc3c7;
22
+ padding: 20px;
23
+ margin-top: 20px;
24
+ background-color: #ecf0f1;
25
+ }
26
+ .highlight {
27
+ font-weight: bold;
28
+ color: #e74c3c;
29
+ }
30
+ .button {
31
+ display: inline-block;
32
+ background-color: #3498db;
33
+ color: white;
34
+ padding: 10px 20px;
35
+ text-decoration: none;
36
+ border-radius: 5px;
37
+ margin-top: 20px;
38
+ }
39
+ .button:hover {
40
+ background-color: #2980b9;
41
+ }
42
+ </style>
43
+ </head>
44
+ <body>
45
+ <h1>Informed Consent for TableQA Study</h1>
46
+
47
+ <div class="consent-box">
48
+ <h2>Study Information</h2>
49
+ <p>You are invited to participate in a research study on Table Question Answering (TableQA) systems. This study aims to improve how AI systems explain their reasoning when answering questions based on tabular data.</p>
50
+
51
+ <h2>Study Duration and Requirements</h2>
52
+ <ul>
53
+ <li>The entire study will take approximately <span class="highlight">20 minutes</span> to complete.</li>
54
+ <li>Please perform this study on a <span class="highlight">computer</span> (not a phone).</li>
55
+ <li>Do not seek help from the Internet or other people during the study.</li>
56
+ </ul>
57
+
58
+ <h2>Study Structure</h2>
59
+ <ol>
60
+ <li>Introduction to TableQA and task explanation</li>
61
+ <li>Main study: 10 questions about TableQA explanations</li>
62
+ </ol>
63
+
64
+ <h2>Compensation</h2>
65
+ <p>Compensation will be provided only upon successful completion of the entire study, including passing the qualification test and completing all 30 main study questions.</p>
66
+
67
+ <h2>Benefits</h2>
68
+ <p>Your participation will contribute to the development of AI systems that can better explain their reasoning to humans, particularly in the domain of question answering from tabular data. There are no known risks associated with this study.</p>
69
+
70
+ <h2>Data Usage and Confidentiality</h2>
71
+ <p>All data collected will be anonymized and used solely for research purposes. Your personal information will be kept confidential.</p>
72
+
73
+ <h2>Voluntary Participation</h2>
74
+ <p>Your participation in this study is entirely voluntary. You may choose to withdraw at any time without any consequences.</p>
75
+
76
+ <h2>Contact Information</h2>
77
+ <p>If you have any questions or concerns about this study, please contact Anh Nguyen's lab at Auburn CSSE department via [email protected].</p>
78
+
79
+ <p class="highlight">By clicking "I Agree" below, you confirm that you have read and understood this informed consent, and you agree to participate in this TableQA study under the terms described above.</p>
80
+
81
+ <!-- <a href="#" class="button">I Agree</a>-->
82
+ <form action="{{ url_for('consent') }}" method="post">
83
+ <button type="submit" class="button">I Agree</button>
84
+ </form>
85
+ </div>
86
+
87
+ <p style="text-align: center; margin-top: 20px;">Your participation helps create future AI systems that can explain themselves to humans. <strong>Thank you for your contribution!</strong></p>
88
+ </body>
89
+ </html>