Spaces:
Sleeping
Sleeping
| from fastapi import FastAPI | |
| from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer | |
| app = FastAPI() | |
| def greet_json(): | |
| return {"Hello": "World!"} | |
| def sentiment_analysis(message: str): | |
| analyzer = SentimentIntensityAnalyzer() | |
| return analyzer.polarity_scores("This is a positive message") | |