Spaces:
Runtime error
Runtime error
Sriram Elango
commited on
Commit
•
f8409e9
1
Parent(s):
0b3c9e7
Update
Browse files
app.py
CHANGED
@@ -158,7 +158,7 @@ def classifySocial(image):
|
|
158 |
toxicScore = float(list(toxicScore.items())[0][1])
|
159 |
sentimentScore = getPolarity(ofaImageCaption)
|
160 |
|
161 |
-
if (toxicScore > .
|
162 |
|
163 |
#gpt3Explanation = gpt3Request(ofaImageCaption)
|
164 |
return (cnnImage, "The Image is Anti-Social", toxicScore, ofaImageCaption)
|
|
|
158 |
toxicScore = float(list(toxicScore.items())[0][1])
|
159 |
sentimentScore = getPolarity(ofaImageCaption)
|
160 |
|
161 |
+
if (toxicScore > .3 or sentimentScore < 0):
|
162 |
|
163 |
#gpt3Explanation = gpt3Request(ofaImageCaption)
|
164 |
return (cnnImage, "The Image is Anti-Social", toxicScore, ofaImageCaption)
|