saritha5 commited on
Commit
73980b5
1 Parent(s): a63b05d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 Image is "+"Not Occluded "+"with a Score of "+str(round(score,2))
52
  else:
53
- return "The Image is "+"Occluded "+"with a Score of "+str(round(score,2))
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')