Commit
·
5f5fd58
1
Parent(s):
e8cce98
Update main.py
Browse files
main.py
CHANGED
@@ -24,7 +24,7 @@ class SentimentRequest(BaseModel):
|
|
24 |
|
25 |
# Define a response model
|
26 |
class SentimentResponse(BaseModel):
|
27 |
-
sentiment:
|
28 |
score: float
|
29 |
|
30 |
# Create an endpoint for sentiment analysis with query parameter
|
|
|
24 |
|
25 |
# Define a response model
|
26 |
class SentimentResponse(BaseModel):
|
27 |
+
sentiment: str # 1 for positive, 0 for negative
|
28 |
score: float
|
29 |
|
30 |
# Create an endpoint for sentiment analysis with query parameter
|