jhj0517 commited on
Commit
9eb2384
1 Parent(s): 607e627

rollback pytoshop because it doesn't work in huggingface

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -35,12 +35,10 @@ class App:
35
  with gr.Row():
36
  gallery_output = gr.Gallery(label="Output will be shown here", show_label=True).style(grid=5,
37
  height="auto")
38
- with gr.Row():
39
- file_psd = gr.File(label="PSD File will be shown here")
40
 
41
  params = [nb_points_per_side, sld_pred_iou_thresh, sld_stability_score_thresh, nb_crop_n_layers,
42
  nb_crop_n_points_downscale_factor, nb_min_mask_region_area]
43
- btn_generate.click(fn=self.sam.generate_mask_app, inputs=[img_input] + params, outputs=[gallery_output, file_psd])
44
 
45
  self.app.queue(api_open=False).launch()
46
 
 
35
  with gr.Row():
36
  gallery_output = gr.Gallery(label="Output will be shown here", show_label=True).style(grid=5,
37
  height="auto")
 
 
38
 
39
  params = [nb_points_per_side, sld_pred_iou_thresh, sld_stability_score_thresh, nb_crop_n_layers,
40
  nb_crop_n_points_downscale_factor, nb_min_mask_region_area]
41
+ btn_generate.click(fn=self.sam.generate_mask_app, inputs=[img_input] + params, outputs=[gallery_output])
42
 
43
  self.app.queue(api_open=False).launch()
44