Uthar commited on
Commit
7bb0d3f
·
verified ·
1 Parent(s): 54b0d06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -148,6 +148,13 @@ const monitorImageChange = (imageElement) => {
148
 
149
  console.log('Now monitoring image changes for:', imageElement);
150
  };
 
 
 
 
 
 
 
151
 
152
  </script>
153
  """
 
148
 
149
  console.log('Now monitoring image changes for:', imageElement);
150
  };
151
+
152
+ const img = document.querySelector('img'); // Select the target image element
153
+ if (img) {
154
+ monitorImageChange(img);
155
+ } else {
156
+ console.error('No image found to monitor.');
157
+ }
158
 
159
  </script>
160
  """