feat: Flask web UI on port 9000 with upload, job status, API endpoints

This commit is contained in:
jetson committed 2026-09-16 15:04:49 +07:00
1 parent f38c9708f6
commit eb77e5be8a
6 files changed
+373

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
{% extends "base.html" %}
{% block title %}Jobs - Feedmill Recounter{% endblock %}
{% block content %}
<h2>All Jobs</h2>
{% if jobs %}
<table class="results-table">
<thead>
<tr>
<th>Job ID</th>
<th>Status</th>
<th>Progress</th>
<th>Models</th>
<th>Created</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% for job in jobs %}
<tr>
<td><a href="/status/{{ job.job_id }}">{{ job.job_id }}</a></td>
<td class="status-{{ job.status|lower }}">{{ job.status.name }}</td>
<td>{{ "%.0f"|format(job.progress * 100) }}%</td>
<td>{{ job.model_configs|length }} model(s)</td>
<td>{{ "%.1f"|format(job.created_at) }}</td>
<td>
<a href="/status/{{ job.job_id }}">View</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No jobs yet. <a href="/">Upload a video</a></p>
{% endif %}
{% endblock %}