Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,9 +48,9 @@ def occ_predict(img_content):
|
|
| 48 |
score = prediction[0][0].item()
|
| 49 |
thresh = 0.5
|
| 50 |
if score > thresh:
|
| 51 |
-
return "The
|
| 52 |
else:
|
| 53 |
-
return "The
|
| 54 |
|
| 55 |
#predicted_label, score = occ_predict("img1.jpg")
|
| 56 |
inputs = gr.inputs.Image(type = 'filepath')
|
|
|
|
| 48 |
score = prediction[0][0].item()
|
| 49 |
thresh = 0.5
|
| 50 |
if score > thresh:
|
| 51 |
+
return "The house is "+"Not Occluded "+" and the occlusion Score is "+str(round(score,2))
|
| 52 |
else:
|
| 53 |
+
return "The house is "+"Occluded "+"and the occlusion Score is "+str(round(score,2))
|
| 54 |
|
| 55 |
#predicted_label, score = occ_predict("img1.jpg")
|
| 56 |
inputs = gr.inputs.Image(type = 'filepath')
|