Spaces:
Sleeping
Sleeping
SalmanHabeeb
commited on
Commit
•
7ca27ea
1
Parent(s):
6be91ad
Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,8 @@ def predict(img):
|
|
49 |
for i in list(dict1.keys())[-3:]:
|
50 |
sum += dict1[i]
|
51 |
output.update({"Other" : 1.0 - sum})
|
|
|
|
|
52 |
return output
|
53 |
|
54 |
|
|
|
49 |
for i in list(dict1.keys())[-3:]:
|
50 |
sum += dict1[i]
|
51 |
output.update({"Other" : 1.0 - sum})
|
52 |
+
if output['Other'] < 0:
|
53 |
+
output['Other'] = 0
|
54 |
return output
|
55 |
|
56 |
|