Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,9 @@ model.eval()
|
|
14 |
def predict(inp):
|
15 |
print("***********Inference****************")
|
16 |
res = inference_img(model, inp)
|
17 |
-
|
18 |
-
|
19 |
-
return
|
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("************************************")
|