emirkaanozdemr commited on
Commit
a9a8feb
1 Parent(s): dd92710

Upload 3 files

Browse files
Files changed (3) hide show
  1. app.py +22 -0
  2. model.h5 +3 -0
  3. requirements.txt +3 -0
app.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ st.title("Learn Yield of Wild Blueberries")
8
+
9
+ y=st.number_input("Yield")
10
+ f=st.number_input("Fruitset")
11
+ s=st.number_input("Seeds")
12
+ fm=st.number_input("Fruitmass")
13
+ ard=st.number_input("Average Raining Days")
14
+ rd=st.number_input("Raining Days")
15
+ c=st.number_input("Clonesize")
16
+ data=[y,f,s,fm,ard,rd,c]
17
+ if st.button("Predict"):
18
+ data=np.array(data)
19
+ if len(data.shape) == 1:
20
+ data = np.expand_dims(data, axis=0)
21
+ pred=model.predict(data)
22
+ st.write(pred)
model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fe94c6944409a29ea2776838a6d7381648eb371e742d6085c3baa849ae1ddcc
3
+ size 263616
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ tensorflow
2
+ streamlit
3
+ numpy