Sriram Elango commited on
Commit
f8409e9
1 Parent(s): 0b3c9e7
Files changed (1) hide show
  1. app.py +1 -1
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 > .4 or sentimentScore < -.85):
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)