Gopala Krishna commited on
Commit
d4bf4bd
·
1 Parent(s): 89a2017
.vs/ContentModeration/FileContentIndex/166bc59b-1bfd-4c9b-b3a4-70c8e4bb1fd7.vsidx DELETED
Binary file (202 Bytes)
 
.vs/ContentModeration/FileContentIndex/{b771ed29-d4bf-4799-85b3-74b832443376.vsidx → 4f81caf7-f67a-4f87-b7bb-cfec7041b74d.vsidx} RENAMED
File without changes
.vs/ContentModeration/FileContentIndex/dcfd09ac-6b79-4366-a6da-dba08d1488b9.vsidx ADDED
Binary file (127 Bytes). View file
 
.vs/ContentModeration/v17/.wsuo CHANGED
Binary files a/.vs/ContentModeration/v17/.wsuo and b/.vs/ContentModeration/v17/.wsuo differ
 
app.py CHANGED
@@ -8,7 +8,7 @@ def chatbot(input):
8
  response = openai.Moderation.create(input=input)
9
  reply = response["results"][0].flagged
10
  if reply == True:
11
- return "This content is offensive and should be moderated"
12
  else:
13
  return "This content doesn't need moderation"
14
 
 
8
  response = openai.Moderation.create(input=input)
9
  reply = response["results"][0].flagged
10
  if reply == True:
11
+ return "This content is offensive and needs to be moderated"
12
  else:
13
  return "This content doesn't need moderation"
14