Spaces:
Runtime error
Runtime error
klyap
commited on
Commit
•
2d3cc77
1
Parent(s):
30faa8c
add img examples
Browse files- .gitattributes +2 -0
- aesthetic-pancakes.jpg +3 -0
- app.py +3 -1
- messy-oatmeal.png +3 -0
- messy-plating.png +3 -0
.gitattributes
CHANGED
@@ -32,3 +32,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
aesthetic-pancakes.jpg
ADDED
Git LFS Details
|
app.py
CHANGED
@@ -15,4 +15,6 @@ def predict(img):
|
|
15 |
pred,pred_idx,probs = learn.predict(img)
|
16 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
17 |
|
18 |
-
|
|
|
|
|
|
15 |
pred,pred_idx,probs = learn.predict(img)
|
16 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
17 |
|
18 |
+
examples = ['aesthetic-pancakes.jpg', 'messy-oatmeal.png', 'messy-plating.png']
|
19 |
+
|
20 |
+
gr.Interface(fn=predict, inputs=gr.Image(shape=(512, 512)), outputs=gr.Label(num_top_classes=3), examples=examples).launch(share=False)
|
messy-oatmeal.png
ADDED
Git LFS Details
|
messy-plating.png
ADDED
Git LFS Details
|