JJ94 commited on
Commit
35666dc
·
verified ·
1 Parent(s): 16e0996

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,10 +1,10 @@
1
- from flask import Flask, request, jsonify
2
 
3
  app = Flask(__name__)
4
 
5
  @app.route("/")
6
  def home():
7
- return "Hello! Your Flask app is running on Hugging Face Spaces 🚀"
8
 
9
  @app.route("/chat", methods=["POST"])
10
  def chat():
@@ -16,3 +16,4 @@ def chat():
16
 
17
  if __name__ == "__main__":
18
  app.run(host="0.0.0.0", port=7860)
 
 
1
+ from flask import Flask, request, jsonify, render_template
2
 
3
  app = Flask(__name__)
4
 
5
  @app.route("/")
6
  def home():
7
+ return render_template("index.html")
8
 
9
  @app.route("/chat", methods=["POST"])
10
  def chat():
 
16
 
17
  if __name__ == "__main__":
18
  app.run(host="0.0.0.0", port=7860)
19
+