diqitalize commited on
Commit
8259fd3
1 Parent(s): 394a4c7
Files changed (2) hide show
  1. app.py +2 -1
  2. requirements.txt +1 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import streamlit as st
2
  import tensorflow as tf
3
  import numpy as np
 
4
  from PIL import Image
5
 
6
 
@@ -8,7 +9,7 @@ st.set_option('deprecation.showfileUploaderEncoding', False)
8
 
9
  @st.cache(allow_output_mutation=True)
10
  def load_model():
11
- model = tf.keras.models.load_weights('kerang_model_trained.h5')
12
  return model
13
 
14
 
 
1
  import streamlit as st
2
  import tensorflow as tf
3
  import numpy as np
4
+ from keras.models import Model, Sequential
5
  from PIL import Image
6
 
7
 
 
9
 
10
  @st.cache(allow_output_mutation=True)
11
  def load_model():
12
+ model = Model.load_weights('kerang_model_trained.h5')
13
  return model
14
 
15
 
requirements.txt CHANGED
@@ -2,3 +2,4 @@ numpy==1.23.1
2
  Pillow==9.3.0
3
  streamlit==1.12.0
4
  tensorflow==2.9.1
 
 
2
  Pillow==9.3.0
3
  streamlit==1.12.0
4
  tensorflow==2.9.1
5
+ keras