Hamza011 commited on
Commit
707afa5
1 Parent(s): 6701f60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import tensorflow as tf
2
  import gradio as gr
3
  import cv2
4
 
5
- used_model = tf.keras.layers.TFSMLayer('./model', call_endpoint='serving_default')
6
  new_classes = ['blight', 'common_rust', 'gray_leaf_spot','healthy']
7
 
8
  def classify_image(img_dt):
 
2
  import gradio as gr
3
  import cv2
4
 
5
+ used_model = tf.keras.layers.TFSMLayer(os.path.dirname('/model'), call_endpoint='serving_default')
6
  new_classes = ['blight', 'common_rust', 'gray_leaf_spot','healthy']
7
 
8
  def classify_image(img_dt):