tqmp commited on
Commit ·
83f00a5
1
Parent(s): 68ac3ad
removed old models
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ def is_cat(x): return x[0].isupper()
|
|
| 5 |
|
| 6 |
learn = load_learner('./model.pkl')
|
| 7 |
|
| 8 |
-
categories = ('
|
| 9 |
|
| 10 |
def classify_image(img):
|
| 11 |
pred, idx, probs = learn.predict(img)
|
|
@@ -14,7 +14,7 @@ def classify_image(img):
|
|
| 14 |
image = gr.inputs.Image(shape=(224,224))
|
| 15 |
label = gr.outputs.Label()
|
| 16 |
|
| 17 |
-
examples = ['./
|
| 18 |
|
| 19 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
| 20 |
intf.launch(inline=False)
|
|
|
|
| 5 |
|
| 6 |
learn = load_learner('./model.pkl')
|
| 7 |
|
| 8 |
+
categories = ('Bun Bo Hue'), ('Pho')
|
| 9 |
|
| 10 |
def classify_image(img):
|
| 11 |
pred, idx, probs = learn.predict(img)
|
|
|
|
| 14 |
image = gr.inputs.Image(shape=(224,224))
|
| 15 |
label = gr.outputs.Label()
|
| 16 |
|
| 17 |
+
examples = ['./bunbohue.jpg', './pho.jpg']
|
| 18 |
|
| 19 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
| 20 |
intf.launch(inline=False)
|