Update app.py
Browse files
app.py
CHANGED
|
@@ -102,7 +102,7 @@ def moderate_content(api_key, user_message, chat_history):
|
|
| 102 |
"content": f"Analyze the following content for policy violations:\n\n{user_message}"
|
| 103 |
}
|
| 104 |
],
|
| 105 |
-
model="
|
| 106 |
temperature=0.3,
|
| 107 |
max_tokens=1024,
|
| 108 |
)
|
|
@@ -185,7 +185,7 @@ with gr.Blocks(title="Content Moderation Chatbot", theme=gr.themes.Soft()) as ap
|
|
| 185 |
gr.Markdown("""
|
| 186 |
# 🛡️ Advanced Content Moderation Chatbot
|
| 187 |
|
| 188 |
-
This chatbot uses Groq's
|
| 189 |
Enter your Groq API key and test content to see detailed moderation analysis.
|
| 190 |
""")
|
| 191 |
|
|
@@ -345,7 +345,7 @@ with gr.Blocks(title="Content Moderation Chatbot", theme=gr.themes.Soft()) as ap
|
|
| 345 |
|
| 346 |
---
|
| 347 |
|
| 348 |
-
**Powered by:** Groq
|
| 349 |
""")
|
| 350 |
|
| 351 |
# Launch the app
|
|
|
|
| 102 |
"content": f"Analyze the following content for policy violations:\n\n{user_message}"
|
| 103 |
}
|
| 104 |
],
|
| 105 |
+
model="openai/gpt-oss-safeguard-20b",
|
| 106 |
temperature=0.3,
|
| 107 |
max_tokens=1024,
|
| 108 |
)
|
|
|
|
| 185 |
gr.Markdown("""
|
| 186 |
# 🛡️ Advanced Content Moderation Chatbot
|
| 187 |
|
| 188 |
+
This chatbot uses Groq's GPT-OSS-Safeguard-20B model with an enhanced system prompt to analyze content against a comprehensive harm taxonomy.
|
| 189 |
Enter your Groq API key and test content to see detailed moderation analysis.
|
| 190 |
""")
|
| 191 |
|
|
|
|
| 345 |
|
| 346 |
---
|
| 347 |
|
| 348 |
+
**Powered by:** Groq GPT-OSS-Safeguard-20B | **Built with:** Gradio
|
| 349 |
""")
|
| 350 |
|
| 351 |
# Launch the app
|