{% extends "base.html" %} {% block title %}Extract{% endblock %} {% block extra_head %} {% include "_extract_base_styles.html" %} {% endblock %} {% block content %}

Extract data into {{ database }} / {{ table }}

Select columns to populate with extracted data:

{% for column in columns %} {# Closing TR tag was missing, added it #} {% endfor %}
{% if models|length > 1 %}
{% else %} {# Ensure models list is not empty before accessing index 0 #} {% if models %} {% else %}

Error: No suitable AI models found or configured.

{% endif %} {% endif %}
{# Height set via CSS rule #}
{# Use standard div, display:none handled by CSS #} Processing... This may take a moment.
{# Use standard file-upload structure #}
{# Height set via CSS rule #}
{# Only show submit if models are available #} {% if models %}
{% endif %}
{# End extract-container #}

Duplicate these columns to a new table

{# Keep outside the card #} {% include "_extract_drop_handler.html" %} {% if previous_runs %}

Previous extraction tasks

{# Changed overflow to overflow-x #} {# Added Model column #} {# Added tbody #} {% for run in previous_runs %} {# Display model used #} {# Truncate long properties #} {# Truncate long instructions #} {% endfor %}
ID Created Completed ModelProperties Instructions Error Items
{{ run.id }} {{ run.created }} {{ run.completed or "" }} {{ run.model or "" }}{{ run.properties }}{{ run.instructions or "" }}{{ run.error or "" }} {{ run.num_items }}
{% endif %} {% endblock %}