shir0ha commited on
Commit
bc539c1
·
1 Parent(s): cff9442

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -14,9 +14,9 @@ model.eval()
14
  def predict(inp):
15
  print("***********Inference****************")
16
  res = inference_img(model, inp)
17
- print("***********Inference finish****************")
18
-
19
- return res
20
 
21
  print("MODEL LOADED")
22
  print("************************************")
 
14
  def predict(inp):
15
  print("***********Inference****************")
16
  res = inference_img(model, inp)
17
+ main_subject = inp.copy()
18
+ main_subject = main_subject * res[res > 0.1]
19
+ return main_subject
20
 
21
  print("MODEL LOADED")
22
  print("************************************")