rcajegas commited on
Commit
6c311bc
·
1 Parent(s): edbfea9

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ app = Flask(__name__)
2
+
3
+ @app.route('/')
4
+ def hospital_info():
5
+ # Load the hospital data from the CSV file
6
+ with open('data/hospital_data.csv', 'r') as f:
7
+ reader = csv.DictReader(f)
8
+ hospital_data = list(reader)
9
+
10
+ # Render the hospital information template with the hospital data
11
+ return render_template('hospital_info.html', hospital_data=hospital_data)