jflo commited on
Commit
350cb8a
·
1 Parent(s): 7094506

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ def classify_string(message):
12
  def greet_json():
13
  return {"Hello": "World!"}
14
 
15
- @app.get("/sentiment")
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)