Spaces:
Runtime error
Runtime error
DavidFarrell
commited on
Commit
·
c0527cb
1
Parent(s):
72401f5
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,12 @@ def predict(img):
|
|
28 |
|
29 |
|
30 |
|
31 |
-
def greet(name):
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
35 |
iface.launch()
|
|
|
28 |
|
29 |
|
30 |
|
31 |
+
#def greet(name):
|
32 |
+
# return "Hellooo " + name + "!!"
|
33 |
+
|
34 |
+
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
35 |
+
|
36 |
+
|
37 |
+
iface = gr.Interface(fn=predict, inputs=gr.Image(shape=(512,512)), outputs=gr.outputs.Label(num_top_classes=3), title="Pet Breed Classifier", description="A pet breed classifier trained on the Oxford Pets dataset using the fastai library (5 epochs) as a proof of concept for Gradio.", article="<p style='text-align: center'><a href='https://gameologist.com/portfolio' target='_blank'>see more of my things here</a></p>", examples=['abys.jpg', 'download (3).jpg'], enable_queue=True)
|
38 |
|
|
|
39 |
iface.launch()
|