liuyizhang commited on
Commit
81fed1b
1 Parent(s): ca589ef

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -304,7 +304,7 @@ if __name__ == "__main__":
304
  task_type = gr.Radio(["detection", "segment", "inpainting"], value="detection",
305
  label='Task type:',interactive=True, visible=True)
306
  text_prompt = gr.Textbox(label="Detection Prompt")
307
- inpaint_prompt = gr.Textbox(label="Inpaint Prompt", visible=False)
308
  run_button = gr.Button(label="Run")
309
  with gr.Accordion("Advanced options", open=False):
310
  box_threshold = gr.Slider(
@@ -321,6 +321,6 @@ if __name__ == "__main__":
321
 
322
  run_button.click(fn=run_grounded_sam, inputs=[
323
  input_image, text_prompt, task_type, inpaint_prompt, box_threshold, text_threshold], outputs=[gallery])
324
- task_type.change(fn=change_task_type, inputs=[task_type], outputs=[inpaint_prompt])
325
 
326
  block.launch(server_name='0.0.0.0', debug=args.debug, share=args.share)
 
304
  task_type = gr.Radio(["detection", "segment", "inpainting"], value="detection",
305
  label='Task type:',interactive=True, visible=True)
306
  text_prompt = gr.Textbox(label="Detection Prompt")
307
+ inpaint_prompt = gr.Textbox(label="Inpaint Prompt", visible=True)
308
  run_button = gr.Button(label="Run")
309
  with gr.Accordion("Advanced options", open=False):
310
  box_threshold = gr.Slider(
 
321
 
322
  run_button.click(fn=run_grounded_sam, inputs=[
323
  input_image, text_prompt, task_type, inpaint_prompt, box_threshold, text_threshold], outputs=[gallery])
324
+ # task_type.change(fn=change_task_type, inputs=[task_type], outputs=[inpaint_prompt])
325
 
326
  block.launch(server_name='0.0.0.0', debug=args.debug, share=args.share)