Upload folder using huggingface_hub
Browse files- hate_speech_demo.py +1 -1
hate_speech_demo.py
CHANGED
|
@@ -444,7 +444,7 @@ def get_openai_moderation(openai_client, user_input):
|
|
| 444 |
|
| 445 |
|
| 446 |
# Updated to only require one input
|
| 447 |
-
def
|
| 448 |
# Initialize APIs with hardcoded keys
|
| 449 |
contextual_api = ContextualAPIUtils(api_key=ORACLE_API_KEY)
|
| 450 |
together_client = Together(api_key=TOGETHER_API_KEY)
|
|
|
|
| 444 |
|
| 445 |
|
| 446 |
# Updated to only require one input
|
| 447 |
+
def rate_user_input(user_input, user_response):
|
| 448 |
# Initialize APIs with hardcoded keys
|
| 449 |
contextual_api = ContextualAPIUtils(api_key=ORACLE_API_KEY)
|
| 450 |
together_client = Together(api_key=TOGETHER_API_KEY)
|