Spaces:
Sleeping
Sleeping
remove moderation_response_dict
Browse files
app.py
CHANGED
|
@@ -2339,7 +2339,7 @@ def chat_with_any_ai(ai_type, password, video_id, user_data, transcript_state, k
|
|
| 2339 |
"assistant_id": ai_name,
|
| 2340 |
"is_streaming": "false",
|
| 2341 |
"moderation_is_flagged": str(is_flagged),
|
| 2342 |
-
"moderation_response_dict": str(response_dict)
|
| 2343 |
}
|
| 2344 |
elif ai_type == "assistant":
|
| 2345 |
client = OPEN_AI_CLIENT
|
|
@@ -2353,7 +2353,7 @@ def chat_with_any_ai(ai_type, password, video_id, user_data, transcript_state, k
|
|
| 2353 |
"assistant_id": assistant_id,
|
| 2354 |
"is_streaming": "false",
|
| 2355 |
"moderation_is_flagged": str(is_flagged),
|
| 2356 |
-
"moderation_response_dict": str(response_dict)
|
| 2357 |
}
|
| 2358 |
|
| 2359 |
if is_flagged:
|
|
|
|
| 2339 |
"assistant_id": ai_name,
|
| 2340 |
"is_streaming": "false",
|
| 2341 |
"moderation_is_flagged": str(is_flagged),
|
| 2342 |
+
# "moderation_response_dict": str(response_dict)
|
| 2343 |
}
|
| 2344 |
elif ai_type == "assistant":
|
| 2345 |
client = OPEN_AI_CLIENT
|
|
|
|
| 2353 |
"assistant_id": assistant_id,
|
| 2354 |
"is_streaming": "false",
|
| 2355 |
"moderation_is_flagged": str(is_flagged),
|
| 2356 |
+
# "moderation_response_dict": str(response_dict)
|
| 2357 |
}
|
| 2358 |
|
| 2359 |
if is_flagged:
|