Spaces:
Runtime error
Runtime error
Old-Fat-Boy
commited on
Commit
•
f2cee9d
1
Parent(s):
bc33918
Change image title to Thumbnail
Browse files- .gitignore +1 -0
- app.py +1 -1
.gitignore
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
.vscode/
|
2 |
venv/
|
|
|
|
1 |
.vscode/
|
2 |
venv/
|
3 |
+
__pycache__/
|
app.py
CHANGED
@@ -18,7 +18,7 @@ def classify_image(img):
|
|
18 |
return dict(zip(categories, map(float,probs)))
|
19 |
|
20 |
# %% app.ipynb 9
|
21 |
-
image = gr.Image(shape=(192,192))
|
22 |
label = gr.Label()
|
23 |
examples = ['example.jpg', 'above_average.jpg', 'below_average.jpg']
|
24 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
18 |
return dict(zip(categories, map(float,probs)))
|
19 |
|
20 |
# %% app.ipynb 9
|
21 |
+
image = gr.Image(shape=(192,192), label="Thumbnail")
|
22 |
label = gr.Label()
|
23 |
examples = ['example.jpg', 'above_average.jpg', 'below_average.jpg']
|
24 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|