sunil18p31a0101 commited on
Commit
cb1cb2b
·
verified ·
1 Parent(s): 2383640

updated app

Browse files
Files changed (1) hide show
  1. app.py +23 -6
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
- examples = pd.DataFrame({
59
- "MonsoonIntensity" :1
60
- "TopographyDrainage":2
61
- })
62
-
63
- title="Flood Prediction Model")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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)