Spaces:
Sleeping
Sleeping
Commit
·
f965215
1
Parent(s):
505e6e2
Change endpoint
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def llama_guard_classify(conv_prefix, response):
|
|
28 |
return output.choices[0].message.content
|
29 |
|
30 |
def classify_prompt(category,conv_prefix, response):
|
31 |
-
url = "
|
32 |
|
33 |
payload = {
|
34 |
"model_name": "collinear_guard_classifier",
|
|
|
28 |
return output.choices[0].message.content
|
29 |
|
30 |
def classify_prompt(category,conv_prefix, response):
|
31 |
+
url = f"{API_ENDPOINT}/api/v1/judge/safety"
|
32 |
|
33 |
payload = {
|
34 |
"model_name": "collinear_guard_classifier",
|