SiddanthEmani
Added doc and gitignore
ed6d701
|
raw
history blame
354 Bytes

MCP - Sentiment Analysis

Dependencies

  • gradio[mcp]
  • textblob

File Structure

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)

Functions

  1. analyze_sentiment(text) -> dict