Spaces:
Runtime error
Runtime error
Commit
·
1fe6c7c
1
Parent(s):
dae5612
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,5 +11,9 @@ def index():
|
|
| 11 |
def predictSentiment(text):
|
| 12 |
return predict(text)[0]
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
if __name__ == "__main__":
|
| 15 |
app.run(host="0.0.0.0", port=7860)
|
|
|
|
| 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)
|