ALVHB95 commited on
Commit
e0ab7f1
·
1 Parent(s): 961b617
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -37,7 +37,17 @@ custom_title = "<span style='color: rgb(243, 239, 224);'>Green Greta</span>"
37
 
38
 
39
  # Cell 1: Image Classification Model
40
- model1 = from_pretrained_keras("rocioadlc/efficientnetB0_trash")
 
 
 
 
 
 
 
 
 
 
41
 
42
  # Define class labels
43
  class_labels = ['cardboard', 'glass', 'metal', 'paper', 'plastic', 'trash']
 
37
 
38
 
39
  # Cell 1: Image Classification Model
40
+
41
+ # model1 = from_pretrained_keras("rocioadlc/efficientnetB0_trash")
42
+
43
+ model1 = tf.keras.layers.TFSMLayer(
44
+ 'rocioadlc/efficientnetB0_trash',
45
+ call_endpoint='serving_default',
46
+ call_training_endpoint=None,
47
+ trainable=True,
48
+ name=None,
49
+ dtype=None
50
+ )
51
 
52
  # Define class labels
53
  class_labels = ['cardboard', 'glass', 'metal', 'paper', 'plastic', 'trash']