app = Flask(__name__) @app.route('/') def hospital_info(): # Load the hospital data from the CSV file with open('data/hospital_data.csv', 'r') as f: reader = csv.DictReader(f) hospital_data = list(reader) # Render the hospital information template with the hospital data return render_template('hospital_info.html', hospital_data=hospital_data)