Ashrafb commited on
Commit
35a00c4
1 Parent(s): 92995c2

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +2 -1
static/index.html CHANGED
@@ -282,7 +282,8 @@ h1 {
282
  const data = await response.json();
283
  const sketchImage = document.createElement('img');
284
  sketchImage.src = data.sketch_image_base64;
285
- resultContainer.innerHTML =sketchImage;
 
286
  } else {
287
  // If server error, display the error message
288
  const errorMessage = await response.text();
 
282
  const data = await response.json();
283
  const sketchImage = document.createElement('img');
284
  sketchImage.src = data.sketch_image_base64;
285
+ resultContainer.appendChild(sketchImage);
286
+
287
  } else {
288
  // If server error, display the error message
289
  const errorMessage = await response.text();