Spaces:
Sleeping
Sleeping
WebashalarForML
commited on
Commit
•
763bdf8
1
Parent(s):
11a3d49
Update templates/index.html
Browse files- templates/index.html +13 -16
templates/index.html
CHANGED
@@ -102,26 +102,23 @@
|
|
102 |
|
103 |
<div class="file-upload-section">
|
104 |
|
105 |
-
|
106 |
<form id="fileUploadForm" action="{{ url_for('upload_file') }}" method="POST" enctype="multipart/form-data">
|
107 |
<!-- <input type="file" name="file" class="form-control" required /> -->
|
108 |
<input type="file" name="files" multiple class="form-control" required />
|
109 |
<input type="submit" value="Upload your Images" class="btn btn-outline-primary" />
|
110 |
-
</form>
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
</div>
|
124 |
-
{% endif %}
|
125 |
</div>
|
126 |
|
127 |
<div class="container">
|
|
|
102 |
|
103 |
<div class="file-upload-section">
|
104 |
|
|
|
105 |
<form id="fileUploadForm" action="{{ url_for('upload_file') }}" method="POST" enctype="multipart/form-data">
|
106 |
<!-- <input type="file" name="file" class="form-control" required /> -->
|
107 |
<input type="file" name="files" multiple class="form-control" required />
|
108 |
<input type="submit" value="Upload your Images" class="btn btn-outline-primary" />
|
109 |
+
</form>
|
110 |
+
<p class="mt-4">
|
111 |
+
Uploaded:
|
112 |
+
<span class="text-danger">{{ session.get('uploaded_file') }}</span>
|
113 |
+
</p>
|
114 |
+
<div class="file-actions">
|
115 |
+
<form action="{{ url_for('remove_file') }}" method="post">
|
116 |
+
<button type="submit" class="btn btn-outline-danger">
|
117 |
+
<i class="bi bi-trash"></i> Remove Uploaded File
|
118 |
+
</button>
|
119 |
+
</form>
|
120 |
+
</div>
|
121 |
+
|
|
|
|
|
122 |
</div>
|
123 |
|
124 |
<div class="container">
|