Update app.py to fix mistral moderation passing to metadata
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ async def check_safety(message: str, metadata: dict) -> dict:
|
|
84 |
# Mistral moderation results
|
85 |
try:
|
86 |
mistral_response = await get_mistral_moderation(user_content, message)
|
87 |
-
mistral_results = mistral_response
|
88 |
except Exception as e:
|
89 |
print(f"[Mistral moderation error]: {str(e)}")
|
90 |
mistral_results = None
|
|
|
84 |
# Mistral moderation results
|
85 |
try:
|
86 |
mistral_response = await get_mistral_moderation(user_content, message)
|
87 |
+
mistral_results = mistral_response
|
88 |
except Exception as e:
|
89 |
print(f"[Mistral moderation error]: {str(e)}")
|
90 |
mistral_results = None
|