Spaces:
Sleeping
Sleeping
George
commited on
Commit
·
e7861c2
1
Parent(s):
30b9034
changes to app.py
Browse files
app.py
CHANGED
@@ -12,14 +12,16 @@ def predict(img):
|
|
12 |
return result
|
13 |
|
14 |
|
15 |
-
gr.Interface(
|
16 |
fn=predict,
|
17 |
-
inputs=gr.
|
18 |
-
outputs=gr.
|
19 |
title="Saving the silkies",
|
20 |
description="A pigeon/silkie classifier. Create as a demo for entertainment and educational purposes.",
|
21 |
article="<p style='text-align: center'><a href='LINK_HERE' target='_blank'>Blog post</a></p>",
|
22 |
examples=["IMG_3558.jpg"],
|
23 |
interpretation="default",
|
24 |
enable_queue=True,
|
25 |
-
)
|
|
|
|
|
|
12 |
return result
|
13 |
|
14 |
|
15 |
+
demo = gr.Interface(
|
16 |
fn=predict,
|
17 |
+
inputs=gr.Image(shape=(512, 512)),
|
18 |
+
outputs=gr.Label(num_top_classes=3),
|
19 |
title="Saving the silkies",
|
20 |
description="A pigeon/silkie classifier. Create as a demo for entertainment and educational purposes.",
|
21 |
article="<p style='text-align: center'><a href='LINK_HERE' target='_blank'>Blog post</a></p>",
|
22 |
examples=["IMG_3558.jpg"],
|
23 |
interpretation="default",
|
24 |
enable_queue=True,
|
25 |
+
)
|
26 |
+
demo.queue(concurrency_count=2, max_size=15)
|
27 |
+
demo.launch()
|