gyesibiney commited on
Commit
5f5fd58
·
1 Parent(s): e8cce98

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -24,7 +24,7 @@ class SentimentRequest(BaseModel):
24
 
25
  # Define a response model
26
  class SentimentResponse(BaseModel):
27
- sentiment: int # 1 for positive, 0 for negative
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