fix: jinja problem of enumerate (#1216)

This commit is contained in:
amstrongzyf
2025-09-01 14:50:26 +08:00
committed by GitHub
parent 88a1b08b8c
commit c8830f3f3d
@@ -473,8 +473,8 @@ hypothesis_select:
The following are additional hypotheses that have been approved by other experiments.
If any of these hypotheses have a SOTA score significantly higher than the current SOTA score in this experiment, you may want to prioritize considering them:
Additional hypotheses (may include those corresponding to the SOTA score):
{% for i, item in enumerate(selected_extra_hypo_l) %}
{{ i+1 }}. {{ item[0] }} (item[1]: {{ "%.3f"|format(item[1]) }})
{% for item in selected_extra_hypo_l %}
{{ loop.index }}. {{ item[0] }} (score: {{ "%.3f"|format(item[1]) }})
{% endfor %}
{% endif %}
{% else %}
@@ -485,8 +485,8 @@ hypothesis_select:
The following are additional hypotheses that have been approved by other experiments.
You can also serve as references and are part of the Hypothesis Source to help you quickly reach or surpass the SOTA score:
Additional hypotheses (may include those corresponding to the SOTA score):
{% for i, item in enumerate(selected_extra_hypo_l) %}
{{ i+1 }}. {{ item[0] }} (item[1]: {{ "%.3f"|format(item[1]) }})
{% for item in selected_extra_hypo_l %}
{{ loop.index }}. {{ item[0] }} (score: {{ "%.3f"|format(item[1]) }})
{% endfor %}
{% endif %}
{% endif %}