Spaces:
Sleeping
Sleeping
brandonchiazzamodali commited on
Commit ·
89e4c3b
1
Parent(s): 3ec1d97
Add application files
Browse files- app.py +1 -1
- cars&trucks/{car/0889bdcb-0f0f-4ab3-81e2-9246afc5b474.jpeg → cars&trucks} +0 -0
- export.pkl +1 -1
- model.ipynb +0 -0
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def classify_image(change):
|
|
| 45 |
|
| 46 |
|
| 47 |
# %% model.ipynb 50
|
| 48 |
-
image = gr.inputs.Image(shape=(
|
| 49 |
label = gr.outputs.Label(num_top_classes=3)
|
| 50 |
examples = ['images/car.jpg']
|
| 51 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
|
| 45 |
|
| 46 |
|
| 47 |
# %% model.ipynb 50
|
| 48 |
+
image = gr.inputs.Image(shape=(224,512)) #resize uploaded image -- good to align with your original resizing
|
| 49 |
label = gr.outputs.Label(num_top_classes=3)
|
| 50 |
examples = ['images/car.jpg']
|
| 51 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
cars&trucks/{car/0889bdcb-0f0f-4ab3-81e2-9246afc5b474.jpeg → cars&trucks}
RENAMED
|
File without changes
|
export.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 46974159
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31b439eef62ded3013de09d59b8951a4762a5c1dd82ce2ca1f304db8ca85cc1e
|
| 3 |
size 46974159
|
model.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|