Spaces:
Sleeping
Sleeping
aryrk
commited on
Commit
·
7bd8b18
1
Parent(s):
ec61f43
[debug]
Browse files
app.py
CHANGED
|
@@ -123,7 +123,7 @@ preprocess_options = [
|
|
| 123 |
]
|
| 124 |
|
| 125 |
iface = gr.Interface(
|
| 126 |
-
fn=reflection_removal,
|
| 127 |
inputs=[
|
| 128 |
gr.Image(type="filepath", label="Upload Image (JPG/PNG)"),
|
| 129 |
gr.Dropdown(choices=preprocess_options, label="Preprocessing Type", value="resize_and_crop")
|
|
|
|
| 123 |
]
|
| 124 |
|
| 125 |
iface = gr.Interface(
|
| 126 |
+
fn=lambda input_image, preprocess_type: reflection_removal(input_image, preprocess_type or "resize_and_crop"),
|
| 127 |
inputs=[
|
| 128 |
gr.Image(type="filepath", label="Upload Image (JPG/PNG)"),
|
| 129 |
gr.Dropdown(choices=preprocess_options, label="Preprocessing Type", value="resize_and_crop")
|