Spaces:
Runtime error
Runtime error
Commit
·
3861914
1
Parent(s):
edf1249
update
Browse files
templates/experiment.html
CHANGED
|
@@ -96,25 +96,27 @@
|
|
| 96 |
<h1>{{ sample_id + 1 }} / 10</h1>
|
| 97 |
<p><strong>Task description:</strong> {{ statement }}</p>
|
| 98 |
<div class="visualization-container">
|
|
|
|
|
|
|
| 99 |
<div class="visualization">
|
| 100 |
<h2>{{ method_a }}</h2>
|
| 101 |
-
<iframe src="{{
|
| 102 |
</div>
|
| 103 |
<div class="visualization">
|
| 104 |
<h2>{{ method_b }}</h2>
|
| 105 |
-
<iframe src="{{
|
| 106 |
</div>
|
| 107 |
</div>
|
| 108 |
<div class="question-box">
|
| 109 |
<p class="question-text">Which explanation provides a clearer and more accurate reasoning process?</p>
|
| 110 |
</div>
|
| 111 |
<div class="buttons">
|
| 112 |
-
<form action="{{ url_for('
|
| 113 |
-
<input type="hidden" name="
|
| 114 |
<button type="submit" name="feedback" value="{{ method_a }}">{{ method_a }}</button>
|
| 115 |
</form>
|
| 116 |
-
<form action="{{ url_for('
|
| 117 |
-
<input type="hidden" name="
|
| 118 |
<button type="submit" name="feedback" value="{{ method_b }}">{{ method_b }}</button>
|
| 119 |
</form>
|
| 120 |
</div>
|
|
|
|
| 96 |
<h1>{{ sample_id + 1 }} / 10</h1>
|
| 97 |
<p><strong>Task description:</strong> {{ statement }}</p>
|
| 98 |
<div class="visualization-container">
|
| 99 |
+
{% set methods = ['No-XAI', 'Dater', 'Chain-of-Table', 'Plan-of-SQLs'] %}
|
| 100 |
+
{% set method_a, method_b = random.sample(methods, 2) %}
|
| 101 |
<div class="visualization">
|
| 102 |
<h2>{{ method_a }}</h2>
|
| 103 |
+
<iframe src="{{ visualizations[method_a] }}" width="100%" height="100%" frameborder="0"></iframe>
|
| 104 |
</div>
|
| 105 |
<div class="visualization">
|
| 106 |
<h2>{{ method_b }}</h2>
|
| 107 |
+
<iframe src="{{ visualizations[method_b] }}" width="100%" height="100%" frameborder="0"></iframe>
|
| 108 |
</div>
|
| 109 |
</div>
|
| 110 |
<div class="question-box">
|
| 111 |
<p class="question-text">Which explanation provides a clearer and more accurate reasoning process?</p>
|
| 112 |
</div>
|
| 113 |
<div class="buttons">
|
| 114 |
+
<form action="{{ url_for('experiment', username=username) }}" method="post" style="width: 48%;">
|
| 115 |
+
<input type="hidden" name="comparison" value="{{ method_a }}:{{ method_b }}">
|
| 116 |
<button type="submit" name="feedback" value="{{ method_a }}">{{ method_a }}</button>
|
| 117 |
</form>
|
| 118 |
+
<form action="{{ url_for('experiment', username=username) }}" method="post" style="width: 48%;">
|
| 119 |
+
<input type="hidden" name="comparison" value="{{ method_a }}:{{ method_b }}">
|
| 120 |
<button type="submit" name="feedback" value="{{ method_b }}">{{ method_b }}</button>
|
| 121 |
</form>
|
| 122 |
</div>
|