Swapped Image/Video

Swapped Output

{% if filename.endswith('.jpg') or filename.endswith('.png') or filename.endswith('.jpeg') %} Generated Image {% elif filename.endswith('.mp4') or filename.endswith('.avi') or filename.endswith('.mov') %} {% else %}

Unsupported file format: {{ filename }}

{% endif %}