WebashalarForML commited on
Commit
87f75e6
1 Parent(s): b4245e6

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +12 -11
templates/index.html CHANGED
@@ -109,17 +109,18 @@
109
  <input type="submit" value="Upload your Images" class="btn btn-outline-primary" />
110
  </form>
111
 
112
- {% if uploaded_files %}
113
- <h4 class="mt-4">Uploaded Files:</h4>
114
- <ul class="list-group">
115
- {% for file in uploaded_files %}
116
- <li class="list-group-item d-flex justify-content-between align-items-center"
117
- style="background-color: #3a4149; color: #e0e0e0;">
118
- {{ file }}
119
- <a href="{{ url_for('remove_file', filename=file) }}" class="remove-file" title="Remove File">&times;</a>
120
- </li>
121
- {% endfor %}
122
- </ul>
 
123
  {% endif %}
124
  </div>
125
 
 
109
  <input type="submit" value="Upload your Images" class="btn btn-outline-primary" />
110
  </form>
111
 
112
+ {{% if session.get('uploaded_file') %}
113
+ <p class="mt-4">
114
+ Uploaded:
115
+ <span class="text-danger">{{ session.get('uploaded_file') }}</span>
116
+ </p>
117
+ <div class="file-actions">
118
+ <form action="{{ url_for('remove_file') }}" method="post">
119
+ <button type="submit" class="btn btn-outline-danger">
120
+ <i class="bi bi-trash"></i> Remove Uploaded File
121
+ </button>
122
+ </form>
123
+ </div>
124
  {% endif %}
125
  </div>
126