emirkaanozdemr commited on
Commit
678595f
1 Parent(s): f88ed9a

Upload 3 files

Browse files
Files changed (3) hide show
  1. app.py +21 -0
  2. model.h5 +3 -0
  3. requirements.txt +3 -0
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from tensorflow.keras.models import load_model
3
+ import numpy as np
4
+
5
+ model=load_model("model.h5")
6
+
7
+ di=st.number_input("Deteriorating Infrastructure")
8
+ mi=st.number_input("Monsoon Intensity")
9
+ dq=st.number_input("Dams Quality")
10
+ td=st.number_input("Topography Drainage")
11
+ rm=st.number_input("River Management")
12
+ s=st.number_input("Siltation")
13
+ ps=st.number_input("Population Score")
14
+ l=st.number_input("Landslides")
15
+ data=[di,mi,dq,td,rm,s,ps,l]
16
+ if st.button("Predict"):
17
+ data=np.array(data)
18
+ if len(data.shape) == 1:
19
+ data = np.expand_dims(data, axis=0)
20
+ prediction=model.predict(data)
21
+ st.write(prediction)
model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0becc464582f288c4b0e63c74a811e13139f2b019179ef171874e345063d1a43
3
+ size 266496
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ streamlit
2
+ tensorflow
3
+ numpy