Spaces:
Runtime error
Runtime error
Gopala Krishna
commited on
Commit
·
89a2017
1
Parent(s):
66cd45e
- .vs/ContentModeration/v17/.wsuo +0 -0
- .vs/VSWorkspaceState.json +1 -1
- .vs/slnx.sqlite +0 -0
- app.py +1 -1
.vs/ContentModeration/v17/.wsuo
CHANGED
Binary files a/.vs/ContentModeration/v17/.wsuo and b/.vs/ContentModeration/v17/.wsuo differ
|
|
.vs/VSWorkspaceState.json
CHANGED
@@ -2,6 +2,6 @@
|
|
2 |
"ExpandedNodes": [
|
3 |
""
|
4 |
],
|
5 |
-
"SelectedNode": "\\
|
6 |
"PreviewInSolutionExplorer": false
|
7 |
}
|
|
|
2 |
"ExpandedNodes": [
|
3 |
""
|
4 |
],
|
5 |
+
"SelectedNode": "\\app.py",
|
6 |
"PreviewInSolutionExplorer": false
|
7 |
}
|
.vs/slnx.sqlite
CHANGED
Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite 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 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 should be moderated"
|
12 |
else:
|
13 |
return "This content doesn't need moderation"
|
14 |
|