Dinoking commited on
Commit
de415c5
·
1 Parent(s): 1638212

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -24,6 +24,8 @@ def predict_image(img):
24
  image = gr.inputs.Image(shape=(224, 224))
25
  label = gr.outputs.Label(num_top_classes=3)
26
  article="<p style='text-align: center'>Made by Aditya Narendra with 🖤</p>"
 
27
 
28
- gr.Interface(fn=predict_image, inputs=image, title="Garbage Classifier",
29
- description="This is a Garbage Classification Model Trained using MobileNetV2.Deployed to Hugging Faces using Gradio.",outputs=label,article=article,interpretation='default').launch(share="True")
 
 
24
  image = gr.inputs.Image(shape=(224, 224))
25
  label = gr.outputs.Label(num_top_classes=3)
26
  article="<p style='text-align: center'>Made by Aditya Narendra with 🖤</p>"
27
+ examples = ['battery.jpg','cardboard.jpeg','jeans.jpg','metal.jpg','plastic.jpg','shoes.jpg']
28
 
29
+
30
+ gr.Interface(fn=predict_image, inputs=image, title="Garbage Classifier V3",
31
+ description="This is a Garbage Classification Model Trained using MobileNetV2.Deployed to Hugging Faces using Gradio.",outputs=label,examples=examples,article=article,interpretation='default').launch(share="True")