pranavkv commited on
Commit
725b96d
·
verified ·
1 Parent(s): 74adfe9

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -3381,8 +3381,8 @@ if __name__ == "__main__":
3381
  print("3. Check port availability or try different port")
3382
  print("4. Ensure virtual environment is active")
3383
  print("5. For Windows: pip install --upgrade gradio httpx python-dotenv")
3384
- print("6. Contact support if issues persist")
3385
- if prizes:
3386
  avg_prize = sum(prizes) / len(prizes)
3387
  max_prize = max(prizes)
3388
  response += f"\n💡 **Prize Insights:** Average prize: ${avg_prize:,.0f} | Highest: ${max_prize:,}\n"
@@ -3392,8 +3392,7 @@ if __name__ == "__main__":
3392
  else:
3393
  # No matches found, but provide helpful response
3394
  tech_names = ", ".join(detected_techs)
3395
- return f"""I searched through **{len(challenges)} live challenges** from the real MCP server, but didn't find any that specifically match **{tech_names}** in my current dataset.
3396
- **🔍 This could mean:**
3397
  • These challenges might be in a different category or status
3398
  • The technology keywords might be listed differently
3399
  • New challenges with these technologies haven't been added yet
 
3381
  print("3. Check port availability or try different port")
3382
  print("4. Ensure virtual environment is active")
3383
  print("5. For Windows: pip install --upgrade gradio httpx python-dotenv")
3384
+ print("6. Contact support if issues persist"), '').replace(',', '').isdigit()]
3385
+ if prizes:
3386
  avg_prize = sum(prizes) / len(prizes)
3387
  max_prize = max(prizes)
3388
  response += f"\n💡 **Prize Insights:** Average prize: ${avg_prize:,.0f} | Highest: ${max_prize:,}\n"
 
3392
  else:
3393
  # No matches found, but provide helpful response
3394
  tech_names = ", ".join(detected_techs)
3395
+ return f"""I searched through **{len(challenges)} live challenges** from the real MCP server, but didn't find any that specifically match **{tech_names}** in my current dataset.**🔍 This could mean:**
 
3396
  • These challenges might be in a different category or status
3397
  • The technology keywords might be listed differently
3398
  • New challenges with these technologies haven't been added yet