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

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +2 -0
static/index.html CHANGED
@@ -281,6 +281,8 @@ h1 {
281
  // If successful response, display the result image
282
  const data = await response.json();
283
  const sketchImage = document.createElement('img');
 
 
284
  sketchImage.src = data.sketch_image_base64;
285
  resultContainer.appendChild(sketchImage);
286
 
 
281
  // If successful response, display the result image
282
  const data = await response.json();
283
  const sketchImage = document.createElement('img');
284
+ sketchImage.style.maxWidth = '100%'; // Adjust this value as needed
285
+ sketchImage.style.maxHeight = '100%'; // Adjust this value as needed
286
  sketchImage.src = data.sketch_image_base64;
287
  resultContainer.appendChild(sketchImage);
288