update app.py with o1-mini
Browse files
app.py
CHANGED
@@ -87,11 +87,11 @@ async def main(message: cl.Message):
|
|
87 |
msg.prompt = prompt
|
88 |
|
89 |
# Add indicator emoji based on evaluation result
|
90 |
-
if any(word in msg.content.lower() for word in ['critical', 'severe', 'serious', 'failing']):
|
91 |
-
|
92 |
-
elif any(word in msg.content.lower() for word in ['minor', 'small', 'minimal']):
|
93 |
-
|
94 |
-
else:
|
95 |
-
|
96 |
|
97 |
await msg.send()
|
|
|
87 |
msg.prompt = prompt
|
88 |
|
89 |
# Add indicator emoji based on evaluation result
|
90 |
+
#if any(word in msg.content.lower() for word in ['critical', 'severe', 'serious', 'failing']):
|
91 |
+
# await msg.stream_token(" 🚨") # Critical issues found
|
92 |
+
#elif any(word in msg.content.lower() for word in ['minor', 'small', 'minimal']):
|
93 |
+
# await msg.stream_token(" ⚠️") # Minor issues found
|
94 |
+
#else:
|
95 |
+
# await msg.stream_token(" ✅") # No obvious issues
|
96 |
|
97 |
await msg.send()
|