Spaces:
Sleeping
Sleeping
ok
Browse files
app.py
CHANGED
@@ -15,11 +15,14 @@ import gradio as gr
|
|
15 |
title = "Is this a photo of a doing his business? Or just a dog hanging out?"
|
16 |
desc = "My dog Kona has a nasty habit of doing her business in a very particular spot in the upstairs of our house. Using this model, I'll be able to aim a camera at that spot and send a text alert whenever she does this, so I'll have a better chance of correcting the bad behavior in the moment, which is essential to training a dog."
|
17 |
|
|
|
|
|
|
|
18 |
examples = ['kona.jpg', 'baddog.jpg']
|
19 |
|
20 |
enable_queue=True
|
21 |
|
22 |
-
iface = gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3), title=title, description=desc, examples=examples)
|
23 |
|
24 |
iface.launch()
|
25 |
|
15 |
title = "Is this a photo of a doing his business? Or just a dog hanging out?"
|
16 |
desc = "My dog Kona has a nasty habit of doing her business in a very particular spot in the upstairs of our house. Using this model, I'll be able to aim a camera at that spot and send a text alert whenever she does this, so I'll have a better chance of correcting the bad behavior in the moment, which is essential to training a dog."
|
17 |
|
18 |
+
|
19 |
+
article = "Check out [my blog post](https://currentlyobsessed.com/p/my-first-deep-learning-model-doo-doo-detective) about this project."
|
20 |
+
|
21 |
examples = ['kona.jpg', 'baddog.jpg']
|
22 |
|
23 |
enable_queue=True
|
24 |
|
25 |
+
iface = gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3), title=title, description=desc, examples=examples, article=article)
|
26 |
|
27 |
iface.launch()
|
28 |
|