johnmuchiri commited on
Commit
28a2d71
1 Parent(s): 0bdaade

let's deploy to huggingface spaces

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,8 +12,8 @@ def predict(img):
12
  title = "Benz BMW Classifier"
13
  description = "A classifier that distinguishes between Benz and BMW ML classes of vehicles can be built using Resnet18."
14
  article="ResNet18 is a type of deep neural network that can be used for image classification tasks, including distinguishing between different classes of vehicles such as Benz and BMW ML classes.To use ResNet18 for this task, a dataset of images of Benz and BMW ML class vehicles would be needed. The images would be used to train the ResNet18 model to learn the visual patterns that distinguish between the two classes of vehicles."
15
- #examples = ['images/benz.jpg']
16
  interpretation='default'
17
  enable_queue=True
18
 
19
- gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=2),title=title,description=description,article=article,interpretation=interpretation,enable_queue=enable_queue).launch()
 
12
  title = "Benz BMW Classifier"
13
  description = "A classifier that distinguishes between Benz and BMW ML classes of vehicles can be built using Resnet18."
14
  article="ResNet18 is a type of deep neural network that can be used for image classification tasks, including distinguishing between different classes of vehicles such as Benz and BMW ML classes.To use ResNet18 for this task, a dataset of images of Benz and BMW ML class vehicles would be needed. The images would be used to train the ResNet18 model to learn the visual patterns that distinguish between the two classes of vehicles."
15
+ examples= ['images/benz.jpg',]
16
  interpretation='default'
17
  enable_queue=True
18
 
19
+ gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=2),title=title,description=description,article=article,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()