NaimaAqeel commited on
Commit
6e1bd9f
·
verified ·
1 Parent(s): f233e77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -14,6 +14,7 @@ def process_image(image, k):
14
  """Process the uploaded image, compress it using SVD, and return the result."""
15
  # Convert PIL Image to NumPy array
16
  image_np = np.array(image)
 
17
 
18
  # Compress the image
19
  compressed_image = svd_compress(gray_image, k)
@@ -30,4 +31,4 @@ gr_interface = gr.Interface(fn=process_image,
30
  title="Interactive Image Compression using SVD",
31
  description="Upload an image and adjust the compression rank to see the compressed version.")
32
 
33
- gr_interface.launch()
 
14
  """Process the uploaded image, compress it using SVD, and return the result."""
15
  # Convert PIL Image to NumPy array
16
  image_np = np.array(image)
17
+
18
 
19
  # Compress the image
20
  compressed_image = svd_compress(gray_image, k)
 
31
  title="Interactive Image Compression using SVD",
32
  description="Upload an image and adjust the compression rank to see the compressed version.")
33
 
34
+ gr_interface.launch()