Update examples to use other parameters
Browse files
app.py
CHANGED
@@ -122,7 +122,17 @@ def remove_background(input_path, bg_color, transparent_bg, model_choice, alpha_
|
|
122 |
logging.error(f"An error occurred: {e}")
|
123 |
return None
|
124 |
|
125 |
-
examples = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
|
127 |
# Gradio interface
|
128 |
iface = gr.Interface(
|
|
|
122 |
logging.error(f"An error occurred: {e}")
|
123 |
return None
|
124 |
|
125 |
+
examples = [
|
126 |
+
[
|
127 |
+
'scifi_man1.jpg', # input_path
|
128 |
+
None, # bg_color
|
129 |
+
True, # transparent_bg (most common use case)
|
130 |
+
"", # model_choice
|
131 |
+
False, # alpha_matting
|
132 |
+
False, # post_process_mask
|
133 |
+
False # only_mask
|
134 |
+
]
|
135 |
+
]
|
136 |
|
137 |
# Gradio interface
|
138 |
iface = gr.Interface(
|