Spaces:
Runtime error
Runtime error
siddhantuniyal
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def predict(image):
|
|
24 |
|
25 |
label , confidence = imgResult[0]['label'] , float(imgResult[1]['label'])
|
26 |
|
27 |
-
if confidence > 0.
|
28 |
return ["hate" , label]
|
29 |
else:
|
30 |
|
|
|
24 |
|
25 |
label , confidence = imgResult[0]['label'] , float(imgResult[1]['label'])
|
26 |
|
27 |
+
if confidence > 0.90:
|
28 |
return ["hate" , label]
|
29 |
else:
|
30 |
|