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