Spaces:
Sleeping
Sleeping
File size: 623 Bytes
ed6d701 917171f ed6d701 917171f ed6d701 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# MCP - Sentiment Analysis
## Dependencies
- `gradio[mcp]`
- `textblob`
## File Structure
### app.py
App file for huggingface spaces to build the Gradio app.
### server.py
Main file to run the Gradio app.
- Gradio interface with MCP server is launched
- Input = Text from textbox
- Output = JSON with sentiment analysis results (polarity, subjectivity, assessment)
### mcp.json
JSON file containing the MCP server configuration.
servers = mcp server (sse transport, url)
### config.json
JSON file containing the list of MCP servers for the client to connect to.
## Functions
1. `analyze_sentiment(text) -> dict`
|