fastai library added
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ categories = ('dog', 'cat')
|
|
11 |
|
12 |
def classify_image(img):
|
13 |
pred,idx,probs = learn.predict(img)
|
14 |
-
return dict(zip(categories, map(float, probs)))
|
15 |
|
16 |
image = gr.inputs.Image(shape=(256,256))
|
17 |
label = gr.outputs.Label()
|
|
|
11 |
|
12 |
def classify_image(img):
|
13 |
pred,idx,probs = learn.predict(img)
|
14 |
+
return dict(zip(categories, map(float, probs)))
|
15 |
|
16 |
image = gr.inputs.Image(shape=(256,256))
|
17 |
label = gr.outputs.Label()
|