Update app.py
Browse files
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.
|
32 |
-
outputs="
|
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 |
|