diff --git a/react_app.py b/react_app.py index 54a470c4fb293a0cb9a70dfe98d0cd547d219166..c2c9bfb0ba2cbf8854761777b755657f3c79ffb5 100644 --- a/react_app.py +++ b/react_app.py @@ -160,20 +160,17 @@ def training(): @app.route('/result') # @cross_origin def show_result(): - file_path = "./policy.txt" + file_path = "./react_backend/policy.txt" f = open(file_path, "r") return send_file(file_path, as_attachment=True) -# @app.route('/') -# # @cross_origin -# def serve(): -# return send_from_directory(app.static_folder, 'index.html') +@app.route('/') +# @cross_origin +def serve(): + return send_from_directory(app.static_folder, 'index.html') -@app.route('/', methods=['GET']) -def hello(): - return {"response":"This is Auto-augment Application"} if __name__ == '__main__':