nickuperdana commited on
Commit
195edd0
·
verified ·
1 Parent(s): 7abb6c7

second reupload

Browse files
Files changed (3) hide show
  1. cnn_model.h5 +3 -0
  2. prediction.py +1 -1
  3. requirements.txt +2 -1
cnn_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6af2ad9beb93aba7eeaf7d223a29389679a2b78ccf93c8cfda59e22da0d997d
3
+ size 104656
prediction.py CHANGED
@@ -4,7 +4,7 @@ import numpy as np
4
  import cv2
5
  import tensorflow as tf
6
 
7
- model = tf.keras.models.load_model('cnn_model.keras')
8
 
9
  def run():
10
  st.image('https://static.vecteezy.com/system/resources/thumbnails/025/868/984/small/freshy-various-fruits-for-summer-background-summer-festive-time-concept-generative-ai-free-photo.jpeg', use_column_width=True)
 
4
  import cv2
5
  import tensorflow as tf
6
 
7
+ model = tf.keras.models.load_model('cnn_model.h5')
8
 
9
  def run():
10
  st.image('https://static.vecteezy.com/system/resources/thumbnails/025/868/984/small/freshy-various-fruits-for-summer-background-summer-festive-time-concept-generative-ai-free-photo.jpeg', use_column_width=True)
requirements.txt CHANGED
@@ -1,3 +1,4 @@
 
1
  streamlit
2
  requests
3
  numpy
@@ -5,4 +6,4 @@ opencv-python
5
  matplotlib
6
  pandas
7
  seaborn
8
- tensorflow==2.15.0
 
1
+ tensorflow==2.15.0
2
  streamlit
3
  requests
4
  numpy
 
6
  matplotlib
7
  pandas
8
  seaborn
9
+ keras