Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -39,17 +39,18 @@ def main_func(CLIMATE_SCENARIO, EAL_SCORE,SOVI_SCORE,SOCIAL,ECONOMY,HOUSING_INFR
|
|
39 |
# Create the UI
|
40 |
title = "**Climate Risk Model** π"
|
41 |
description1 = """
|
42 |
-
|
43 |
-
To achieve this, we have created an interactive risk analysis tool that interface allows users to understand which communities will be most impacted, how much the increased impacts of hazards will affect risk, and what characteristics of community resilience can be improved so that risk can be reduced. In doing so, our tool addresses one of the greatest challenges to climate action: understanding the impacts on a granular, local level.
|
44 |
"""
|
45 |
|
46 |
description2 ="""
|
47 |
-
|
48 |
"""
|
49 |
|
50 |
description3 = """
|
51 |
-
This interface allows a user to populate data from three pre-selected counties or a county of their choosing. The pre-selected counties are Miami-Dade County in Florida, Washington County in Minnesota, or Falls Church County in Virginia. In order to acquire the data for a county of their choosing, a user can navigate to a team-built tableau dashboard (https://public.tableau.com/app/profile/michael.durst/viz/ClimateChangeHackathon/ExpectedRiskbyCounty?publish=yes). Either select one of three counties at bottom of page or enter custom data in the fields.
|
52 |
Once the interface is pre-populated with data or a user enters data from their county, a user can experiment with the following data elements by clicking analyze and adjusting the variables available on the sliding scale.
|
|
|
|
|
|
|
53 |
As an output, the user can then see the effects this variables have on the risk score and risk rating as well as see a high to low ranked order of community resilience categories.
|
54 |
"""
|
55 |
|
@@ -60,6 +61,7 @@ with gr.Blocks(title=title) as demo:
|
|
60 |
# gr.Markdown("""---""")
|
61 |
gr.Markdown(description2)
|
62 |
gr.Markdown(description3)
|
|
|
63 |
# gr.Markdown("""---""")
|
64 |
with gr.Row():
|
65 |
with gr.Column():
|
|
|
39 |
# Create the UI
|
40 |
title = "**Climate Risk Model** π"
|
41 |
description1 = """
|
42 |
+
This interface allows a user to populate data from three pre-selected counties or a county of their choosing. The pre-selected counties are Miami-Dade County in Florida, Washington County in Minnesota, or Falls Church County in Virginia. In order to acquire the data for a county of their choosing, a user can navigate to a team-built tableau dashboard. Either select one of three counties at bottom of page or enter custom data in the fields.
|
|
|
43 |
"""
|
44 |
|
45 |
description2 ="""
|
46 |
+
(https://public.tableau.com/app/profile/michael.durst/viz/ClimateChangeHackathon/ExpectedRiskbyCounty?publish=yes)
|
47 |
"""
|
48 |
|
49 |
description3 = """
|
|
|
50 |
Once the interface is pre-populated with data or a user enters data from their county, a user can experiment with the following data elements by clicking analyze and adjusting the variables available on the sliding scale.
|
51 |
+
"""
|
52 |
+
|
53 |
+
description4 = """
|
54 |
As an output, the user can then see the effects this variables have on the risk score and risk rating as well as see a high to low ranked order of community resilience categories.
|
55 |
"""
|
56 |
|
|
|
61 |
# gr.Markdown("""---""")
|
62 |
gr.Markdown(description2)
|
63 |
gr.Markdown(description3)
|
64 |
+
gr.Markdown(description4)
|
65 |
# gr.Markdown("""---""")
|
66 |
with gr.Row():
|
67 |
with gr.Column():
|