Update sentiment_analysis.py

This commit is contained in:
2024-11-02 11:04:12 -04:00
committed by GitHub
parent c496712a9a
commit 34e8a9d190
+1
View File
@@ -3,6 +3,7 @@ from typing import Literal
from _context import sm
from pydantic import BaseModel
# Note: you should probably be using textblob for this.
class SentimentAnalysis(BaseModel):
sentiment: Literal["positive", "negative", "neutral"]