added lfs and bear changes
Browse files- .gitattributes +1 -0
- app.py +4 -5
- grizzly.jpg +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
|
@@ -10,11 +10,10 @@ def predict(img):
|
|
| 10 |
pred,pred_idx,probs = learn.predict(img)
|
| 11 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 12 |
|
| 13 |
-
title = "
|
| 14 |
-
description = "A
|
| 15 |
-
|
| 16 |
-
examples = ['siamese.jpg']
|
| 17 |
interpretation='default'
|
| 18 |
enable_queue=True
|
| 19 |
|
| 20 |
-
gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),title=title,description=description,
|
|
|
|
| 10 |
pred,pred_idx,probs = learn.predict(img)
|
| 11 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 12 |
|
| 13 |
+
title = "Bear Classifier"
|
| 14 |
+
description = "A bear classifier trained on some images downloaded from ddg with fastai. Created as a demo for Gradio and HuggingFace Spaces."
|
| 15 |
+
examples = ['grizzly.jpg']
|
|
|
|
| 16 |
interpretation='default'
|
| 17 |
enable_queue=True
|
| 18 |
|
| 19 |
+
gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),title=title,description=description,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
|
grizzly.jpg
ADDED
|
Git LFS Details
|