Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,30 +39,22 @@ 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 |
"""
|
| 44 |
|
| 45 |
description2 ="""
|
| 46 |
-
|
| 47 |
"""
|
| 48 |
|
| 49 |
description3 = """
|
| 50 |
-
|
| 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 |
|
| 57 |
with gr.Blocks(title=title) as demo:
|
| 58 |
gr.Markdown(f"## {title}")
|
| 59 |
-
# gr.Markdown("""""")
|
| 60 |
gr.Markdown(description1)
|
| 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():
|
| 68 |
CLIMATE_SCENARIO = gr.Slider(label="Climate Scenario", minimum=0, maximum=2, value=0, step=1)
|
|
|
|
| 39 |
# Create the UI
|
| 40 |
title = "**Climate Risk Model** 🌍"
|
| 41 |
description1 = """
|
| 42 |
+
The pre-selected counties are Miami-Dade County in Florida, Washington County in Minnesota, or Falls Church County in Virginia. To acquire the data for a county of their choosing, you can navigate to a team-built tableau dashboard (https://public.tableau.com/app/profile/michael.durst/viz/ClimateChangeHackathon/ExpectedRiskbyCounty?publish=yes).
|
| 43 |
"""
|
| 44 |
|
| 45 |
description2 ="""
|
| 46 |
+
Either select one of three counties at bottom of page or enter custom data in the fields. Once the interface is pre-populated with data or you enter data from a county of your choosing, you can experiment with the data elements by clicking analyze and adjusting the variables available on the sliding scale to see how the outputs are affected.
|
| 47 |
"""
|
| 48 |
|
| 49 |
description3 = """
|
| 50 |
+
As an output, you can then see the effects these variables have on the risk rating.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
"""
|
| 52 |
|
| 53 |
with gr.Blocks(title=title) as demo:
|
| 54 |
gr.Markdown(f"## {title}")
|
|
|
|
| 55 |
gr.Markdown(description1)
|
|
|
|
| 56 |
gr.Markdown(description2)
|
| 57 |
gr.Markdown(description3)
|
|
|
|
|
|
|
| 58 |
with gr.Row():
|
| 59 |
with gr.Column():
|
| 60 |
CLIMATE_SCENARIO = gr.Slider(label="Climate Scenario", minimum=0, maximum=2, value=0, step=1)
|