Upload app.py
Browse files
app.py
CHANGED
|
@@ -979,8 +979,16 @@ Provide a helpful, intelligent response using the challenge data context and ack
|
|
| 979 |
|
| 980 |
# Add some insights
|
| 981 |
if any('prize' in message_lower or 'money' in message_lower or 'pay' in message_lower for _ in [None]):
|
| 982 |
-
|
| 983 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 984 |
# Initialize the enhanced intelligence engine
|
| 985 |
print("🚀 Starting ULTIMATE Topcoder Intelligence Assistant...")
|
| 986 |
intelligence_engine = UltimateTopcoderMCPEngine()
|
|
|
|
| 979 |
|
| 980 |
# Add some insights
|
| 981 |
if any('prize' in message_lower or 'money' in message_lower or 'pay' in message_lower for _ in [None]):
|
| 982 |
+
|
| 983 |
+
prizes = []
|
| 984 |
+
for c in relevant_challenges:
|
| 985 |
+
if c.prize.startswith('$'):
|
| 986 |
+
try:
|
| 987 |
+
prize_str = c.prize.replace('$', '').replace(',', '')
|
| 988 |
+
if prize_str.isdigit():
|
| 989 |
+
prizes.append(int(prize_str))
|
| 990 |
+
except:
|
| 991 |
+
continue
|
| 992 |
# Initialize the enhanced intelligence engine
|
| 993 |
print("🚀 Starting ULTIMATE Topcoder Intelligence Assistant...")
|
| 994 |
intelligence_engine = UltimateTopcoderMCPEngine()
|