luulinh90s commited on
Commit
c3c8897
·
1 Parent(s): 3d4cc65
Files changed (2) hide show
  1. app.py +1 -3
  2. templates/experiment.html +2 -1
app.py CHANGED
@@ -348,9 +348,7 @@ def experiment(session_id):
348
  # Log the metadata
349
  logger.info(f"Sample metadata for session {session_id}, method {method}, index {current_index}: {metadata}")
350
 
351
- statement = """
352
- Please note that in select row function, starting index is 0 for Chain-of-Table and 1 for Dater and Index * represents the selection for all rows.
353
- """
354
 
355
  return render_template('experiment.html',
356
  sample_id=current_index,
 
348
  # Log the metadata
349
  logger.info(f"Sample metadata for session {session_id}, method {method}, index {current_index}: {metadata}")
350
 
351
+ statement = metadata['statement']
 
 
352
 
353
  return render_template('experiment.html',
354
  sample_id=current_index,
templates/experiment.html CHANGED
@@ -117,8 +117,9 @@
117
  <h1>{{ sample_id + 1 }} / 10</h1>
118
  </div>
119
  <div class="task-description">
 
 
120
  <p><strong>Task:</strong> {{ statement | safe }}</p>
121
- <p class="highlight">Based on the explanation below, please guess what the AI model will predict.</p>
122
  </div>
123
  <div class="visualization-container">
124
  <iframe src="{{ visualization }}"></iframe>
 
117
  <h1>{{ sample_id + 1 }} / 10</h1>
118
  </div>
119
  <div class="task-description">
120
+ <p>Please note that in select row function, starting index is 0 for Chain-of-Table and 1 for Dater and Index * represents the selection for all rows.</p>
121
+ <p class="highlight">Based on the explanation below, please guess what the AI model will predict on the input Statement below.</p>
122
  <p><strong>Task:</strong> {{ statement | safe }}</p>
 
123
  </div>
124
  <div class="visualization-container">
125
  <iframe src="{{ visualization }}"></iframe>