Spaces:
Runtime error
Runtime error
Commit
·
88462ff
1
Parent(s):
9105390
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,10 +7,9 @@ app = Flask(__name__)
|
|
| 7 |
def index():
|
| 8 |
return {"output": "Hello, world!"}
|
| 9 |
|
| 10 |
-
@app.route("/predict"
|
| 11 |
-
def predictSentiment():
|
| 12 |
-
|
| 13 |
-
return args["text"]
|
| 14 |
#return predict(args.get("text"))
|
| 15 |
|
| 16 |
if __name__ == "__main__":
|
|
|
|
| 7 |
def index():
|
| 8 |
return {"output": "Hello, world!"}
|
| 9 |
|
| 10 |
+
@app.route("/predict/<text>")
|
| 11 |
+
def predictSentiment(text):
|
| 12 |
+
return text
|
|
|
|
| 13 |
#return predict(args.get("text"))
|
| 14 |
|
| 15 |
if __name__ == "__main__":
|