Spaces:
Runtime error
Runtime error
Commit
·
8592426
1
Parent(s):
e9fd96c
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,12 +8,12 @@ def index():
|
|
| 8 |
return {"output": "Hello, world!"}
|
| 9 |
|
| 10 |
@app.route("/predict/<text>")
|
| 11 |
-
def
|
| 12 |
return predict(text)[0]
|
| 13 |
|
| 14 |
@app.route("/predictSentimentGeneral/<text>")
|
| 15 |
-
def
|
| 16 |
-
return
|
| 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)
|