Spaces:
Sleeping
Sleeping
Update chatgptmoderationapptest
Browse files- chatgptmoderationapptest +2 -6
chatgptmoderationapptest
CHANGED
@@ -1,9 +1,5 @@
|
|
1 |
from openai import OpenAI
|
2 |
client = OpenAI()
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
input="...text to classify goes here...",
|
7 |
-
)
|
8 |
-
|
9 |
-
print(response)
|
|
|
1 |
from openai import OpenAI
|
2 |
client = OpenAI()
|
3 |
|
4 |
+
moderation = client.moderations.create(input="...text to classify goes here...")
|
5 |
+
print(moderation)
|
|
|
|
|
|
|
|