subir001in
commited on
Commit
•
31dc351
1
Parent(s):
95d6920
checkin app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ im
|
|
48 |
'''
|
49 |
#|export
|
50 |
#Use the model.pkl file that is the classifier model
|
51 |
-
learn = load_learner('
|
52 |
|
53 |
# Commented out IPython magic to ensure Python compatibility.
|
54 |
#Now predicted the image to determine if it is a Cat ? It correctly predicts that it is NOT a Cat.
|
@@ -83,7 +83,7 @@ def classify_image(img):
|
|
83 |
#|export
|
84 |
image = gr.Image(height=192,width=192)
|
85 |
label = "label"
|
86 |
-
examples = ['
|
87 |
intf = gr.Interface(fn = classify_image,inputs=image,outputs=label,examples=examples)
|
88 |
intf.launch(inline=False)
|
89 |
|
|
|
48 |
'''
|
49 |
#|export
|
50 |
#Use the model.pkl file that is the classifier model
|
51 |
+
learn = load_learner('model.pkl')
|
52 |
|
53 |
# Commented out IPython magic to ensure Python compatibility.
|
54 |
#Now predicted the image to determine if it is a Cat ? It correctly predicts that it is NOT a Cat.
|
|
|
83 |
#|export
|
84 |
image = gr.Image(height=192,width=192)
|
85 |
label = "label"
|
86 |
+
examples = ['dog.JPG','cat.JPG','dunno.JPG']
|
87 |
intf = gr.Interface(fn = classify_image,inputs=image,outputs=label,examples=examples)
|
88 |
intf.launch(inline=False)
|
89 |
|