Spaces:
Runtime error
Runtime error
Update app.py
Browse files43 unmodified lines444546474849505152535443 unmodified linesinference = Inference(model, vectorizer)#@app.get("/")#def home():#return {"message": "Welcome to Sentiment Analysis API"}@app.get("/{review}")def predict_sentiment(review: str):return {"sentiment": inference.get_sentiment(review)}43 unmodified lines444546474849505152535443 unmodified linesinference = Inference(model, vectorizer)@app.get("/")def home():#return {"message": "Welcome to Sentiment Analysis API"}@app.get("/predict/{review}")def predict_sentiment(review: str):return {"sentiment": inference.get_sentiment(review)}
app.py+3-3