doublesizebed commited on
Commit
91b1ea4
·
1 Parent(s): 290d660

Initial Docker Space、

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -127,6 +127,11 @@ class ChatBot:
127
 
128
  chatbot = ChatBot()
129
 
 
 
 
 
 
130
  @app.route('/chat', methods=['POST'])
131
  def chat_endpoint():
132
  data = request.get_json()
 
127
 
128
  chatbot = ChatBot()
129
 
130
+ app = Flask(__name__, static_folder="static", static_url_path="")
131
+ @app.route("/")
132
+ def homepage():
133
+ return send_from_directory(app.static_folder, "index.html")
134
+
135
  @app.route('/chat', methods=['POST'])
136
  def chat_endpoint():
137
  data = request.get_json()