Skip to content
Snippets Groups Projects
Commit f117547f authored by Mia Wang's avatar Mia Wang
Browse files

fixed react front end

parent 3430e9c6
No related branches found
No related tags found
No related merge requests found
Pipeline #272049 passed
......@@ -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__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment