uyen13 commited on
Commit
f85aaed
·
1 Parent(s): 9bcd7f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -8,7 +8,16 @@ app = flask.Flask(__name_)
8
 
9
  @app.route("/chatbot", methods=["GET"])
10
  def index():
11
- return "index.html"
 
 
 
 
 
 
 
 
 
12
 
13
  if __name__ == "__main__":
14
  app.run(host="0.0.0.0", port=7860)
 
8
 
9
  @app.route("/chatbot", methods=["GET"])
10
  def index():
11
+ return """<h1>Flask Server Running</h1>
12
+ <p>
13
+ Send a JSON POST request in the format
14
+ {
15
+ "sentence": "...",
16
+ "labels": ["...", "...", "..."]
17
+ "multi_label": 0 / 1
18
+ }
19
+ to get predictions
20
+ </p>"""
21
 
22
  if __name__ == "__main__":
23
  app.run(host="0.0.0.0", port=7860)