Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 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):
|