ff98 commited on
Commit
b8e56b8
·
1 Parent(s): ef8712b

caching changed

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -32,7 +32,6 @@ cnn_model = 'CNN_model_weight/model_weights.weights.h5'
32
 
33
  # CNN model
34
 
35
- @st.cache_resource
36
  def run_cnn(img_arr):
37
  my_model = Sequential()
38
  my_model.add(Conv2D(
@@ -66,7 +65,6 @@ def run_cnn(img_arr):
66
  prediction = my_model.predict(img_arr)
67
  return prediction
68
 
69
- @st.cache_resource
70
  def run_effNet(img_arr):
71
  try:
72
  resolver = tf.distribute.cluster_resolver.TPUClusterResolver()
@@ -79,7 +77,6 @@ def run_effNet(img_arr):
79
  prediction = eff_net_model.predict(img_arr)
80
  return prediction
81
 
82
- @st.cache_resource
83
  def run_effNet_Art(img_arr):
84
  try:
85
  resolver = tf.distribute.cluster_resolver.TPUClusterResolver()
 
32
 
33
  # CNN model
34
 
 
35
  def run_cnn(img_arr):
36
  my_model = Sequential()
37
  my_model.add(Conv2D(
 
65
  prediction = my_model.predict(img_arr)
66
  return prediction
67
 
 
68
  def run_effNet(img_arr):
69
  try:
70
  resolver = tf.distribute.cluster_resolver.TPUClusterResolver()
 
77
  prediction = eff_net_model.predict(img_arr)
78
  return prediction
79
 
 
80
  def run_effNet_Art(img_arr):
81
  try:
82
  resolver = tf.distribute.cluster_resolver.TPUClusterResolver()