updated app
Browse files
app.py
CHANGED
@@ -55,10 +55,27 @@ inputs = [
|
|
55 |
outputs = gr.Textbox(label="Flood Probability")
|
56 |
|
57 |
interface = gr.Interface(fn=predict, inputs=inputs, outputs=outputs,
|
58 |
-
|
59 |
-
|
60 |
-
"
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
interface.launch(share=True)
|
|
|
55 |
outputs = gr.Textbox(label="Flood Probability")
|
56 |
|
57 |
interface = gr.Interface(fn=predict, inputs=inputs, outputs=outputs,
|
58 |
+
title="Flood Prediction Model",
|
59 |
+
examples = pd.DataFrame({
|
60 |
+
"MonsoonIntensity" :[5],
|
61 |
+
"TopographyDrainage":[8],
|
62 |
+
"RiverManagement":[5],
|
63 |
+
"Deforestation":[8],
|
64 |
+
"Urbanization":[6],
|
65 |
+
'ClimateChange':[4],
|
66 |
+
'DamsQuality':[4],
|
67 |
+
'Siltation':[3],
|
68 |
+
'AgriculturalPractices':[3],
|
69 |
+
'Encroachments':[4],
|
70 |
+
'IneffectiveDisasterPreparedness':[3],
|
71 |
+
'DrainageSystems':[5],
|
72 |
+
'CoastalVulnerability':[3],
|
73 |
+
'Landslides':[3],
|
74 |
+
'Watersheds':[5],
|
75 |
+
'DeterioratingInfrastructure':[4],
|
76 |
+
'PopulationScore':[7],
|
77 |
+
'WetlandLoss':[5],
|
78 |
+
'InadequatePlanning':[7],
|
79 |
+
'PoliticalFactors':[3]
|
80 |
+
}))
|
81 |
interface.launch(share=True)
|