NaimaAqeel commited on
Commit
e637598
·
verified ·
1 Parent(s): e38bf4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,8 +28,8 @@ def process_image(image, k):
28
 
29
  # Gradio interface
30
  gr_interface = gr.Interface(fn=process_image,
31
- inputs=[gr.inputs.Image(type="pil"), gr.inputs.Slider(1, 100, step=1, default=50)],
32
- outputs="image",
33
  title="Interactive Image Compression using SVD",
34
  description="Upload an image and adjust the compression rank to see the compressed version.")
35
 
 
28
 
29
  # Gradio interface
30
  gr_interface = gr.Interface(fn=process_image,
31
+ inputs=[gr.Image(type="pil"), gr.Slider(1, 100, step=1, value=50, label="Compression Rank")],
32
+ outputs=gr.Image(type="pil"),
33
  title="Interactive Image Compression using SVD",
34
  description="Upload an image and adjust the compression rank to see the compressed version.")
35