Robledo Gularte Gonçalves commited on
Commit
69ff606
·
1 Parent(s): 1527622

print image path and remove progress animation

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -235,10 +235,9 @@ def run_full(image: str, req: gr.Request):
235
  @spaces.GPU()
236
  @torch.no_grad()
237
  def run_segmentation(image: str):
238
- print("run_segmentation pre!")
239
  image = prepare_image(image, bg_color=np.array([1.0, 1.0, 1.0]), rmbg_net=rmbg_net)
240
- print("run_segmentation pos!")
241
- print("run_segmentation image: ", image)
242
  return image
243
 
244
  @spaces.GPU(duration=90)
@@ -1078,7 +1077,7 @@ with gr.Blocks(
1078
  fn=run_segmentation,
1079
  inputs=[image_prompts],
1080
  outputs=[seg_image],
1081
- js="() => { simulateProgress(); document.getElementById('progress-container').style.display = 'block'; }",
1082
  ).then(
1083
  get_random_seed,
1084
  inputs=[randomize_seed, seed],
 
235
  @spaces.GPU()
236
  @torch.no_grad()
237
  def run_segmentation(image: str):
238
+ print("run_segmentation pre image str path: ", image)
239
  image = prepare_image(image, bg_color=np.array([1.0, 1.0, 1.0]), rmbg_net=rmbg_net)
240
+ print("run_segmentation pos image: ", image)
 
241
  return image
242
 
243
  @spaces.GPU(duration=90)
 
1077
  fn=run_segmentation,
1078
  inputs=[image_prompts],
1079
  outputs=[seg_image],
1080
+ # js="() => { simulateProgress(); document.getElementById('progress-container').style.display = 'block'; }",
1081
  ).then(
1082
  get_random_seed,
1083
  inputs=[randomize_seed, seed],