Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -964,23 +964,10 @@ with block:
|
|
964 |
# placeholder="Enter object classes separated by periods (e.g. 'car . person .')",
|
965 |
# value="couch . table ."
|
966 |
# )
|
967 |
-
|
968 |
-
|
969 |
-
maximum=1000,
|
970 |
-
label="X Position",
|
971 |
-
value=500,
|
972 |
-
visible=False
|
973 |
-
)
|
974 |
-
y_slider = gr.Slider(
|
975 |
-
minimum=0,
|
976 |
-
maximum=1000,
|
977 |
-
label="Y Position",
|
978 |
-
value=500,
|
979 |
-
visible=False
|
980 |
-
)
|
981 |
-
extract_button = gr.Button(value="(Option 2) Remove Background")
|
982 |
with gr.Row():
|
983 |
-
extracted_objects = gr.Image(type="numpy", label="Extracted Foreground", height=480)
|
984 |
extracted_fg = gr.Image(type="numpy", label="Extracted Foreground", height=480)
|
985 |
|
986 |
# output_bg = gr.Image(type="numpy", label="Preprocessed Foreground", height=480)
|
@@ -1010,6 +997,20 @@ with block:
|
|
1010 |
highres_denoise = gr.Slider(label="Highres Denoise", minimum=0.1, maximum=1.0, value=0.5, step=0.01)
|
1011 |
a_prompt = gr.Textbox(label="Added Prompt", value='best quality', visible=False)
|
1012 |
n_prompt = gr.Textbox(label="Negative Prompt", value='lowres, bad anatomy, bad hands, cropped, worst quality', visible=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1013 |
with gr.Column():
|
1014 |
result_gallery = gr.Gallery(height=832, object_fit='contain', label='Outputs')
|
1015 |
with gr.Row():
|
|
|
964 |
# placeholder="Enter object classes separated by periods (e.g. 'car . person .')",
|
965 |
# value="couch . table ."
|
966 |
# )
|
967 |
+
|
968 |
+
extract_button = gr.Button(value="Remove Background")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
969 |
with gr.Row():
|
970 |
+
#extracted_objects = gr.Image(type="numpy", label="Extracted Foreground", height=480)
|
971 |
extracted_fg = gr.Image(type="numpy", label="Extracted Foreground", height=480)
|
972 |
|
973 |
# output_bg = gr.Image(type="numpy", label="Preprocessed Foreground", height=480)
|
|
|
997 |
highres_denoise = gr.Slider(label="Highres Denoise", minimum=0.1, maximum=1.0, value=0.5, step=0.01)
|
998 |
a_prompt = gr.Textbox(label="Added Prompt", value='best quality', visible=False)
|
999 |
n_prompt = gr.Textbox(label="Negative Prompt", value='lowres, bad anatomy, bad hands, cropped, worst quality', visible=False)
|
1000 |
+
x_slider = gr.Slider(
|
1001 |
+
minimum=0,
|
1002 |
+
maximum=1000,
|
1003 |
+
label="X Position",
|
1004 |
+
value=500,
|
1005 |
+
visible=False
|
1006 |
+
)
|
1007 |
+
y_slider = gr.Slider(
|
1008 |
+
minimum=0,
|
1009 |
+
maximum=1000,
|
1010 |
+
label="Y Position",
|
1011 |
+
value=500,
|
1012 |
+
visible=False
|
1013 |
+
)
|
1014 |
with gr.Column():
|
1015 |
result_gallery = gr.Gallery(height=832, object_fit='contain', label='Outputs')
|
1016 |
with gr.Row():
|