LeonceNsh commited on
Commit
bccf85c
·
verified ·
1 Parent(s): 838a7a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -57,7 +57,9 @@ def plot_health_metric(metric):
57
  """
58
  Plots the geographical distribution of a selected health metric.
59
  """
 
60
  metric_full_name = metric_mapping[metric]
 
61
  fig, ax = plt.subplots(1, 1, figsize=(12, 8))
62
  gdf_health.plot(
63
  column=metric_full_name,
@@ -175,6 +177,7 @@ with gr.Blocks(title="US Population Health Dashboard") as demo:
175
 
176
  with gr.Tab("Health Metrics Correlation"):
177
  gr.Markdown("### Correlation Matrix of Health Metrics")
 
178
  correlation_metrics = gr.CheckboxGroup(label="Select Health Metrics", choices=simplified_metrics, value=simplified_metrics[:5])
179
  correlation_plot = gr.Plot()
180
  correlation_metrics.change(correlation_interface, inputs=correlation_metrics, outputs=correlation_plot)
 
57
  """
58
  Plots the geographical distribution of a selected health metric.
59
  """
60
+ print(metric_full_name)
61
  metric_full_name = metric_mapping[metric]
62
+ print(metric_full_name)
63
  fig, ax = plt.subplots(1, 1, figsize=(12, 8))
64
  gdf_health.plot(
65
  column=metric_full_name,
 
177
 
178
  with gr.Tab("Health Metrics Correlation"):
179
  gr.Markdown("### Correlation Matrix of Health Metrics")
180
+ print(simplified_metrics)
181
  correlation_metrics = gr.CheckboxGroup(label="Select Health Metrics", choices=simplified_metrics, value=simplified_metrics[:5])
182
  correlation_plot = gr.Plot()
183
  correlation_metrics.change(correlation_interface, inputs=correlation_metrics, outputs=correlation_plot)