Spaces:
Runtime error
Runtime error
Commit History
-
feat: Introduce new sentiment analysis scripts and rename other scripts . Enhance documentation
phil71x- Introduced `sentiment_mcp_gradio_usage.py` for a Gradio UI interface with MCP integration. - Renamed `sentiment_mcp_core_usage.py` for optimized MCP sentiment analysis using smolagents. - Renamed `sentiment_gradio_client_usage.py` as a reliable backup solution bypassing MCP. - Updated `README.md` to reflect new script names, usage instructions, and added a section for Cursor AI integration. - Enhanced performance comparison and clarified dependencies for better user guidance.23d394c
-
refactor: Simplify tool listing in sentiment analysis test function
phil71x- Updated the `test_mcp_sentiment_analysis` function to streamline the output of available tools by using a single print statement with a join operation. - This change enhances readability and reduces the number of lines in the code while maintaining the same functionality.38a6bb3
-
feat: Enhance MCP sentiment analysis with dynamic smolagents import
phil71x- Added a try-except block to conditionally import `MCPClient` from `smolagents`, improving error handling for its availability. - Updated the `test_mcp_sentiment_analysis` function to check for `smolagents` availability before proceeding with sentiment analysis. - Simplified the `check_smolagents` function to utilize the new availability check, enhancing code clarity and maintainability.6f77f6e -
feat: Update dependencies and add new packages for sentiment analysis
phil71x- Updated `pdm.lock` to include new packages: `jsonref`, `mcpadapt`, and `smolagents` with their respective versions and dependencies. - Modified `pyproject.toml` to include `smolagents[mcp]` as a dependency for improved MCP protocol handling. - Added new documentation files: `SOLUTION.md` and `connect_to_hf_mcp.md` for detailed usage and troubleshooting of MCP connections. - Introduced utility scripts for sentiment analysis using both `smolagents` and `Gradio` clients, enhancing the overall functionality and user experience.48a7f49