Spaces:
Runtime error
Runtime error
Commit
·
0beeee1
1
Parent(s):
86ac58d
Update styling
Browse files- web/static/script.js +3 -3
- web/static/styles.css +6 -5
web/static/script.js
CHANGED
|
@@ -12,14 +12,14 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
| 12 |
|
| 13 |
const imageElement = document.createElement("img");
|
| 14 |
imageElement.src = "static/loading.gif";
|
| 15 |
-
imageElement.style.height = "
|
| 16 |
-
imageElement.style.width = "
|
| 17 |
imageElement.style.margin = 'auto';
|
| 18 |
predictionContainer.appendChild(imageElement);
|
| 19 |
|
| 20 |
const selectedFeature = featureSelect.value;
|
| 21 |
const formData = new FormData();
|
| 22 |
-
|
| 23 |
formData.append("uploaded-image", file);
|
| 24 |
formData.append("feature", selectedFeature);
|
| 25 |
lastUploadedImage = file;
|
|
|
|
| 12 |
|
| 13 |
const imageElement = document.createElement("img");
|
| 14 |
imageElement.src = "static/loading.gif";
|
| 15 |
+
imageElement.style.height = "100px";
|
| 16 |
+
imageElement.style.width = "100px";
|
| 17 |
imageElement.style.margin = 'auto';
|
| 18 |
predictionContainer.appendChild(imageElement);
|
| 19 |
|
| 20 |
const selectedFeature = featureSelect.value;
|
| 21 |
const formData = new FormData();
|
| 22 |
+
thinkingText.innerText = "";
|
| 23 |
formData.append("uploaded-image", file);
|
| 24 |
formData.append("feature", selectedFeature);
|
| 25 |
lastUploadedImage = file;
|
web/static/styles.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
body {
|
| 2 |
font-family: 'Helvetica';
|
| 3 |
-
margin-top:
|
| 4 |
margin-left: 10px;
|
| 5 |
margin-right: 10px;
|
| 6 |
margin-bottom: 4000px;
|
|
@@ -22,9 +22,9 @@ body {
|
|
| 22 |
|
| 23 |
.dropzone {
|
| 24 |
margin-top: 20px;
|
| 25 |
-
width:
|
| 26 |
min-height: 100px;
|
| 27 |
-
border: 2px dashed
|
| 28 |
display: flex;
|
| 29 |
justify-content: center;
|
| 30 |
align-items: center;
|
|
@@ -35,7 +35,7 @@ body {
|
|
| 35 |
.prediction-container {
|
| 36 |
margin-top: 20px;
|
| 37 |
min-height: 100px;
|
| 38 |
-
width:
|
| 39 |
border: 2px solid #000000;
|
| 40 |
display: flex;
|
| 41 |
justify-content: center;
|
|
@@ -54,10 +54,11 @@ body {
|
|
| 54 |
/* The container for the predicted images */
|
| 55 |
#predicted-images {
|
| 56 |
margin: auto;
|
|
|
|
| 57 |
display: grid;
|
| 58 |
row-gap: 1%;
|
| 59 |
column-gap: 1%;
|
| 60 |
-
width:
|
| 61 |
justify-content: center;
|
| 62 |
align-items: center;
|
| 63 |
grid-template-columns: repeat(3, 1fr);
|
|
|
|
| 1 |
body {
|
| 2 |
font-family: 'Helvetica';
|
| 3 |
+
margin-top: 50px;
|
| 4 |
margin-left: 10px;
|
| 5 |
margin-right: 10px;
|
| 6 |
margin-bottom: 4000px;
|
|
|
|
| 22 |
|
| 23 |
.dropzone {
|
| 24 |
margin-top: 20px;
|
| 25 |
+
width: 90%;
|
| 26 |
min-height: 100px;
|
| 27 |
+
border: 2px dashed #0b0f19;;
|
| 28 |
display: flex;
|
| 29 |
justify-content: center;
|
| 30 |
align-items: center;
|
|
|
|
| 35 |
.prediction-container {
|
| 36 |
margin-top: 20px;
|
| 37 |
min-height: 100px;
|
| 38 |
+
width: 90%;
|
| 39 |
border: 2px solid #000000;
|
| 40 |
display: flex;
|
| 41 |
justify-content: center;
|
|
|
|
| 54 |
/* The container for the predicted images */
|
| 55 |
#predicted-images {
|
| 56 |
margin: auto;
|
| 57 |
+
margin-top: 20px;
|
| 58 |
display: grid;
|
| 59 |
row-gap: 1%;
|
| 60 |
column-gap: 1%;
|
| 61 |
+
width: 90%;
|
| 62 |
justify-content: center;
|
| 63 |
align-items: center;
|
| 64 |
grid-template-columns: repeat(3, 1fr);
|