Spaces:
Sleeping
Sleeping
Commit ·
711f885
1
Parent(s): a5a4e08
commit
Browse files
app.py
CHANGED
|
@@ -390,7 +390,7 @@ with gr.Blocks(title="GVFD Navigator", theme=gr.themes.Soft()) as demo:
|
|
| 390 |
label="Filtered Value Factors",
|
| 391 |
wrap=True,
|
| 392 |
interactive=False,
|
| 393 |
-
value=get_data_table(df
|
| 394 |
column_widths=["10%", "12%", "12%", "12%", "12%", "10%", "12%", "10%", "10%"]
|
| 395 |
)
|
| 396 |
|
|
@@ -400,16 +400,16 @@ with gr.Blocks(title="GVFD Navigator", theme=gr.themes.Soft()) as demo:
|
|
| 400 |
|
| 401 |
with gr.Tabs():
|
| 402 |
with gr.Tab("Bar Chart"):
|
| 403 |
-
bar_chart = gr.Plot(label="Value Factors by Country")
|
| 404 |
|
| 405 |
with gr.Tab("World Map"):
|
| 406 |
-
map_chart = gr.Plot(label="Global Value Factor Distribution")
|
| 407 |
|
| 408 |
with gr.Tab("Category Comparison"):
|
| 409 |
-
comparison_chart = gr.Plot(label="Category Comparison")
|
| 410 |
|
| 411 |
with gr.Tab("Distribution"):
|
| 412 |
-
box_plot = gr.Plot(label="Value Factor Distribution")
|
| 413 |
|
| 414 |
with gr.Tab("About"):
|
| 415 |
gr.Markdown("""
|
|
|
|
| 390 |
label="Filtered Value Factors",
|
| 391 |
wrap=True,
|
| 392 |
interactive=False,
|
| 393 |
+
value=get_data_table(df), # Show all data initially (up to max_rows limit)
|
| 394 |
column_widths=["10%", "12%", "12%", "12%", "12%", "10%", "12%", "10%", "10%"]
|
| 395 |
)
|
| 396 |
|
|
|
|
| 400 |
|
| 401 |
with gr.Tabs():
|
| 402 |
with gr.Tab("Bar Chart"):
|
| 403 |
+
bar_chart = gr.Plot(label="Value Factors by Country", value=create_bar_chart(df))
|
| 404 |
|
| 405 |
with gr.Tab("World Map"):
|
| 406 |
+
map_chart = gr.Plot(label="Global Value Factor Distribution", value=create_map_visualization(df))
|
| 407 |
|
| 408 |
with gr.Tab("Category Comparison"):
|
| 409 |
+
comparison_chart = gr.Plot(label="Category Comparison", value=create_comparison_chart(df))
|
| 410 |
|
| 411 |
with gr.Tab("Distribution"):
|
| 412 |
+
box_plot = gr.Plot(label="Value Factor Distribution", value=create_box_plot(df))
|
| 413 |
|
| 414 |
with gr.Tab("About"):
|
| 415 |
gr.Markdown("""
|