Spaces:
Paused
Paused
Update static/index.html
Browse files- static/index.html +7 -3
static/index.html
CHANGED
|
@@ -364,9 +364,12 @@ input[type="number"]#scale:focus {
|
|
| 364 |
estimatedTime.style.display = 'none';
|
| 365 |
if (response.ok) {
|
| 366 |
const resultContainer = document.getElementById('resultContainer');
|
| 367 |
-
const
|
| 368 |
-
const
|
| 369 |
-
|
|
|
|
|
|
|
|
|
|
| 370 |
} else {
|
| 371 |
document.getElementById('resultContainer').innerHTML = `<p style="color: white;">Oops! Something went wrong. Please try again later.</p>`;
|
| 372 |
}
|
|
@@ -378,3 +381,4 @@ input[type="number"]#scale:focus {
|
|
| 378 |
</script>
|
| 379 |
</body>
|
| 380 |
</html>
|
|
|
|
|
|
| 364 |
estimatedTime.style.display = 'none';
|
| 365 |
if (response.ok) {
|
| 366 |
const resultContainer = document.getElementById('resultContainer');
|
| 367 |
+
const data = await response.json();
|
| 368 |
+
const sketchImage = document.createElement('img');
|
| 369 |
+
sketchImage.style.maxWidth = '100%'; // Adjust this value as needed
|
| 370 |
+
sketchImage.style.maxHeight = '100%'; // Adjust this value as needed
|
| 371 |
+
sketchImage.src = data.sketch_image_base64;
|
| 372 |
+
resultContainer.appendChild(sketchImage);
|
| 373 |
} else {
|
| 374 |
document.getElementById('resultContainer').innerHTML = `<p style="color: white;">Oops! Something went wrong. Please try again later.</p>`;
|
| 375 |
}
|
|
|
|
| 381 |
</script>
|
| 382 |
</body>
|
| 383 |
</html>
|
| 384 |
+
|