{% extends "generate/base.html" %} {% set active_generate_page = "seeds" %} {% block title %}Seeds — {{ seed_name }} | SPIKEE{% endblock %} {% block content %}
{# ── Header ── #}
← All Seeds
{{ seed_name }}
{% if detail.description %} — {{ detail.description }} {% endif %}
{% if is_local %} {% else %} {% endif %} | Generate dataset →
{% if request.args.get('saved') %}
File saved successfully.
{% endif %} {# ── File cards ── #} {% for file in detail.files %}
{{ file.label }} {{ file.name }} {{ file.entries }} entr{{ 'y' if file.entries == 1 else 'ies' }} {% if is_local %} Raw Edit {% else %} {% endif %} {% if is_local and file.name.endswith('.jsonl') %} New Row {% endif %} {% if file.preview %} {% endif %}
{% if file.preview %}
{% set col_labels = {'id': '#', 'type': 'Type', 'lang': 'Lang', 'text': 'Text preview'} %} {% if is_local and file.name.endswith('.jsonl') %} {% endif %} {% for col in file.columns %} {% endfor %} {% if is_local and file.name.endswith('.jsonl') %}{% endif %} {% for row in file.preview %} {% if is_local and file.name.endswith('.jsonl') %} {% endif %} {% for col in file.columns %} {% if col == 'id' %} {% elif col == 'type' %} {% elif col == 'lang' %} {% elif col == 'text' %} {% endif %} {% endfor %} {% if is_local and file.name.endswith('.jsonl') %} {% endif %} {% endfor %}
{{ col_labels[col] }}
{{ row.id }}{{ row.type }}{{ row.lang or '—' }}{{ row.text }} Edit
{% endif %}
{% endfor %} {% for script_name in detail.scripts %}
{% if script_name == 'fetch_and_convert_dataset.py' %}Fetch & Convert Script{% else %}Seed Script{% endif %} {{ script_name }}
{% if is_local %} {% else %} {% endif %}
Append custom script arguments to the command before running.
{% endfor %} {# ── README ── #} {% if detail.readme_html %}
README
{{ detail.readme_html | safe }}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}