Skip to main content
Glama
emotion.py686 B
from __future__ import annotations from fastapi import APIRouter from schemas import AffectiveAnalysisRequest, AffectiveAnalysisResponse, SentimentRequest, SentimentResponse from models import emotion_analysis router = APIRouter() @router.post("", response_model=AffectiveAnalysisResponse, summary="情感状态识别") def analyze_affective(payload: AffectiveAnalysisRequest) -> AffectiveAnalysisResponse: return emotion_analysis.analyze_affective_state(payload) @router.post("/sentiment", response_model=SentimentResponse, summary="情感分类") def analyze_sentiment(payload: SentimentRequest) -> SentimentResponse: return emotion_analysis.analyze_sentiment(payload)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Eiadrian/educational-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server