Ashoka74 commited on
Commit
c280274
1 Parent(s): d4457a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -16
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
- x_slider = gr.Slider(
968
- minimum=0,
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():