filipeclduarte commited on
Commit
8592426
·
1 Parent(s): e9fd96c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,12 +8,12 @@ def index():
8
  return {"output": "Hello, world!"}
9
 
10
  @app.route("/predict/<text>")
11
- def predictSentiment(text):
12
  return predict(text)[0]
13
 
14
  @app.route("/predictSentimentGeneral/<text>")
15
- def predictSentimentGeneral(text):
16
- return predict(text)[0]
17
 
18
  if __name__ == "__main__":
19
  app.run(host="0.0.0.0", port=7860)
 
8
  return {"output": "Hello, world!"}
9
 
10
  @app.route("/predict/<text>")
11
+ def predict_sentiment(text):
12
  return predict(text)[0]
13
 
14
  @app.route("/predictSentimentGeneral/<text>")
15
+ def predict_sentiment_general(text):
16
+ return predict_general(text)[0]
17
 
18
  if __name__ == "__main__":
19
  app.run(host="0.0.0.0", port=7860)