srijaydeshpande commited on
Commit
fc2587a
·
verified ·
1 Parent(s): d7bbf40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -10,6 +10,7 @@ import matplotlib.pyplot as plt
10
  import tempfile
11
  import os
12
  import spaces
 
13
 
14
  from huggingface_hub import snapshot_download
15
 
@@ -269,7 +270,7 @@ def segment_image(image):
269
 
270
  return image, legend, stats, superimposed_image
271
 
272
- def superimpose_images(image1, image):
273
 
274
  if image1.dtype != np.uint8:
275
  image1 = (image1 * 255).astype(np.uint8) if image1.max() <= 1 else image1.astype(np.uint8)
 
10
  import tempfile
11
  import os
12
  import spaces
13
+ import cv2
14
 
15
  from huggingface_hub import snapshot_download
16
 
 
270
 
271
  return image, legend, stats, superimposed_image
272
 
273
+ def superimpose_images(image1, image2):
274
 
275
  if image1.dtype != np.uint8:
276
  image1 = (image1 * 255).astype(np.uint8) if image1.max() <= 1 else image1.astype(np.uint8)