Add per-request MusicGPT poll button

This commit is contained in:
Troll (Hermes Agent) 2026-08-10 23:25:29 +00:00
parent 57bdf69942
commit 77cd712f10
2 changed files with 41 additions and 3 deletions

View file

@ -385,6 +385,9 @@
{% if in_progress %}
<button type="submit" name="action" value="cancel_musicgpt" class="danger">Cancel Generation</button>
{% endif %}
{% if req.musicgpt_task_id and req.musicgpt_status not in ('IN_QUEUE', 'IN_PROGRESS') %}
<button type="submit" formaction="{{ url_for('admin_musicgpt_poll_request', rid=req.id) }}" class="secondary">Poll MusicGPT</button>
{% endif %}
</div>
</form>
</div>