Sravanth commited on
Commit
fc12d1a
1 Parent(s): 47af615

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -44,11 +44,11 @@ class Inference:
44
 
45
  inference = Inference(model, vectorizer)
46
 
47
- #@app.get("/")
48
- #def home():
49
  #return {"message": "Welcome to Sentiment Analysis API"}
50
 
51
- @app.get("/{review}")
52
  def predict_sentiment(review: str):
53
  return {"sentiment": inference.get_sentiment(review)}
54
 
 
44
 
45
  inference = Inference(model, vectorizer)
46
 
47
+ @app.get("/")
48
+ def home():
49
  #return {"message": "Welcome to Sentiment Analysis API"}
50
 
51
+ @app.get("/predict/{review}")
52
  def predict_sentiment(review: str):
53
  return {"sentiment": inference.get_sentiment(review)}
54