INNER CODE UNIT · Python
result
chonyy/AI-basketball-analysis · app.py:112
def result():
return render_template("result.html", shooting_result=shooting_result)
#disable caching
@app.after_request
def after_request(response):
response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate, public, max-age=0"
response.headers["Expires"] = 0
response.headers["Pragma"] = "no-cache"
return response
if __name__ == '__main__':
app.run(debug=True, use_reloader=True)