Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def classify_string(message):
|
|
| 12 |
def greet_json():
|
| 13 |
return {"Hello": "World!"}
|
| 14 |
|
| 15 |
-
@app.
|
| 16 |
def sentiment_analysis(message: str):
|
| 17 |
analyzer = SentimentIntensityAnalyzer()
|
| 18 |
return analyzer.polarity_scores(message)
|
|
|
|
| 12 |
def greet_json():
|
| 13 |
return {"Hello": "World!"}
|
| 14 |
|
| 15 |
+
@app.post("/sentiment")
|
| 16 |
def sentiment_analysis(message: str):
|
| 17 |
analyzer = SentimentIntensityAnalyzer()
|
| 18 |
return analyzer.polarity_scores(message)
|