Spaces:
Runtime error
Runtime error
Create app.py
Browse files
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)
|