Spaces:
Sleeping
Sleeping
That worked. Revert and try another fix
Browse files
app.py
CHANGED
@@ -18,20 +18,18 @@ description = (
|
|
18 |
"A luxury bag classifier trained on photos of a few brands. Created with resnet18 architecture."
|
19 |
)
|
20 |
article = "<p style='text-align: center'><a href='https://www.kaggle.com/code/sellde/fastai-chapter-2' target='_blank'>Model Source</a></p>"
|
21 |
-
examples = ["gucci.jpg", "chanel.jpg", "vuitton.jpg"]
|
22 |
interpretation = "default"
|
23 |
enable_queue = True
|
24 |
|
25 |
gr.Interface(
|
26 |
fn=predict,
|
27 |
-
inputs=gr.inputs.Image(shape=(
|
28 |
outputs=gr.outputs.Label(),
|
29 |
title=title,
|
30 |
description=description,
|
31 |
article=article,
|
32 |
examples=examples,
|
33 |
-
|
34 |
enable_queue=enable_queue,
|
35 |
-
#thumbnail=???
|
36 |
-
cache_examples=True,
|
37 |
).launch()
|
|
|
18 |
"A luxury bag classifier trained on photos of a few brands. Created with resnet18 architecture."
|
19 |
)
|
20 |
article = "<p style='text-align: center'><a href='https://www.kaggle.com/code/sellde/fastai-chapter-2' target='_blank'>Model Source</a></p>"
|
21 |
+
examples = [["gucci.jpg"], ["chanel.jpg"], ["vuitton.jpg"]]
|
22 |
interpretation = "default"
|
23 |
enable_queue = True
|
24 |
|
25 |
gr.Interface(
|
26 |
fn=predict,
|
27 |
+
inputs=gr.inputs.Image(shape=(512, 512)),
|
28 |
outputs=gr.outputs.Label(),
|
29 |
title=title,
|
30 |
description=description,
|
31 |
article=article,
|
32 |
examples=examples,
|
33 |
+
interpretation=interpretation,
|
34 |
enable_queue=enable_queue,
|
|
|
|
|
35 |
).launch()
|