Ashoka74 commited on
Commit
d4457a0
1 Parent(s): 3306ca5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -16
app.py CHANGED
@@ -958,12 +958,12 @@ with block:
958
  input_fg = gr.Image(type="numpy", label="Image", height=480)
959
  with gr.Row():
960
  with gr.Group():
961
- find_objects_button = gr.Button(value="(Option 1) Segment Object from text")
962
- text_prompt = gr.Textbox(
963
- label="Text Prompt",
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,
@@ -1027,11 +1027,11 @@ with block:
1027
  relight_button.click(fn=process_relight, inputs=ips, outputs=[extracted_fg, result_gallery])
1028
  example_quick_prompts.click(lambda x, y: ', '.join(y.split(', ')[:2] + [x[0]]), inputs=[example_quick_prompts, prompt], outputs=prompt, show_progress=False, queue=False)
1029
  example_quick_subjects.click(lambda x: x[0], inputs=example_quick_subjects, outputs=prompt, show_progress=False, queue=False)
1030
- find_objects_button.click(
1031
- fn=process_image,
1032
- inputs=[input_fg, text_prompt],
1033
- outputs=[extracted_objects, extracted_fg]
1034
- )
1035
  extract_button.click(
1036
  fn=extract_foreground,
1037
  inputs=[input_fg],
@@ -1168,11 +1168,11 @@ with block:
1168
  outputs=[extracted_fg, x_slider, y_slider]
1169
  )
1170
 
1171
- find_objects_button.click(
1172
- fn=process_image,
1173
- inputs=[input_image, text_prompt],
1174
- outputs=[extracted_objects, extracted_fg, x_slider, y_slider]
1175
- )
1176
 
1177
  get_depth_button.click(
1178
  fn=get_depth,
 
958
  input_fg = gr.Image(type="numpy", label="Image", height=480)
959
  with gr.Row():
960
  with gr.Group():
961
+ # find_objects_button = gr.Button(value="(Option 1) Segment Object from text")
962
+ # text_prompt = gr.Textbox(
963
+ # label="Text Prompt",
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,
 
1027
  relight_button.click(fn=process_relight, inputs=ips, outputs=[extracted_fg, result_gallery])
1028
  example_quick_prompts.click(lambda x, y: ', '.join(y.split(', ')[:2] + [x[0]]), inputs=[example_quick_prompts, prompt], outputs=prompt, show_progress=False, queue=False)
1029
  example_quick_subjects.click(lambda x: x[0], inputs=example_quick_subjects, outputs=prompt, show_progress=False, queue=False)
1030
+ # find_objects_button.click(
1031
+ # fn=process_image,
1032
+ # inputs=[input_fg, text_prompt],
1033
+ # outputs=[extracted_objects, extracted_fg]
1034
+ # )
1035
  extract_button.click(
1036
  fn=extract_foreground,
1037
  inputs=[input_fg],
 
1168
  outputs=[extracted_fg, x_slider, y_slider]
1169
  )
1170
 
1171
+ # find_objects_button.click(
1172
+ # fn=process_image,
1173
+ # inputs=[input_image, text_prompt],
1174
+ # outputs=[extracted_objects, extracted_fg, x_slider, y_slider]
1175
+ # )
1176
 
1177
  get_depth_button.click(
1178
  fn=get_depth,