Spaces:
Runtime error
Runtime error
Yousef Rafat
commited on
Commit
·
0302379
1
Parent(s):
f9e475d
Mushroom
Browse files- app.py +2 -2
- cat.jpg +0 -0
- healthy_fungi.jpg +0 -0
- model.pkl → my_model.pkl +2 -2
- poisonous fungi.jpeg +0 -0
app.py
CHANGED
|
@@ -9,7 +9,7 @@ __all__ = ['is_cat', 'label', 'image', 'intf', 'examples', 'categories', 'learn'
|
|
| 9 |
|
| 10 |
def is_cat(x): return x[0].isupper()
|
| 11 |
|
| 12 |
-
learn = load_learner('
|
| 13 |
|
| 14 |
categories = ('Dog', 'Cat')
|
| 15 |
|
|
@@ -23,7 +23,7 @@ from gradio.components import Image, Label
|
|
| 23 |
label = Label()
|
| 24 |
image = Image() #shape = (192, 192)
|
| 25 |
examples=[
|
| 26 |
-
"
|
| 27 |
|
| 28 |
|
| 29 |
intf = gr.Interface(fn = classify_image, inputs = image, outputs = label, examples = examples)
|
|
|
|
| 9 |
|
| 10 |
def is_cat(x): return x[0].isupper()
|
| 11 |
|
| 12 |
+
learn = load_learner('my_model.pkl')
|
| 13 |
|
| 14 |
categories = ('Dog', 'Cat')
|
| 15 |
|
|
|
|
| 23 |
label = Label()
|
| 24 |
image = Image() #shape = (192, 192)
|
| 25 |
examples=[
|
| 26 |
+
"healthy_fungi.jpg", "poisonous fungi.jpeg"]
|
| 27 |
|
| 28 |
|
| 29 |
intf = gr.Interface(fn = classify_image, inputs = image, outputs = label, examples = examples)
|
cat.jpg
DELETED
|
Binary file (92.5 kB)
|
|
|
healthy_fungi.jpg
ADDED
|
model.pkl → my_model.pkl
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2dec84c165bf727ef8274d4a7e8d017bd0dbfade28b62e054208ff25aecf6ff6
|
| 3 |
+
size 179208128
|
poisonous fungi.jpeg
ADDED
|