Lars Hartmann
commited on
Commit
·
8ef1357
1
Parent(s):
8c70155
add examples and change requirements
Browse files- app.py +1 -0
- images/pikachu.png +0 -0
- images/sandshrew.png +0 -0
- images/squirtle.png +0 -0
- requirements.txt +3 -1
app.py
CHANGED
@@ -19,6 +19,7 @@ iface = gr.Interface(fn=predict_image,
|
|
19 |
inputs=gr.inputs.Image(shape=(224, 224)),
|
20 |
outputs=gr.outputs.Label(num_top_classes=3),
|
21 |
title="Pokémon Classifier",
|
|
|
22 |
description="Upload an image of Pikachu, Sandshrew, or Squirtle and the classifier will predict which one it is.")
|
23 |
|
24 |
iface.launch()
|
|
|
19 |
inputs=gr.inputs.Image(shape=(224, 224)),
|
20 |
outputs=gr.outputs.Label(num_top_classes=3),
|
21 |
title="Pokémon Classifier",
|
22 |
+
examples=["images/pickachu.png", "images/squirtle.png", "images/sandshrew.png", "images/5.jpeg"],
|
23 |
description="Upload an image of Pikachu, Sandshrew, or Squirtle and the classifier will predict which one it is.")
|
24 |
|
25 |
iface.launch()
|
images/pikachu.png
ADDED
![]() |
images/sandshrew.png
ADDED
![]() |
images/squirtle.png
ADDED
![]() |
requirements.txt
CHANGED
@@ -1 +1,3 @@
|
|
1 |
-
tensorflow
|
|
|
|
|
|
1 |
+
tensorflow==2.x.x
|
2 |
+
gradio
|
3 |
+
Pillow
|