Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,13 +33,11 @@ def detect(img):
|
|
33 |
os.system("tar -zxvf examples.tar.gz")
|
34 |
|
35 |
|
36 |
-
input = gr.inputs.Image(shape=(100, 100)
|
|
|
37 |
|
38 |
-
examples = ['examples/n1.jpeg', 'examples/n2.jpeg', 'examples/n3.jpeg', 'examples/n4.jpeg', 'examples/n5.jpeg',
|
39 |
-
'examples/n6.jpeg', 'examples/n7.jpeg', 'examples/n8.jpeg', 'examples/p6.jpeg', 'examples/p7.jpeg',
|
40 |
-
'examples/p1.jpeg', 'examples/p2.jpeg', 'examples/p3.jpeg', 'examples/p4.jpeg', 'examples/p8.jpeg']
|
41 |
|
42 |
title = "PneumoDetect: Pneumonia Detection from Chest X-Rays"
|
43 |
|
44 |
-
iface = gr.Interface(fn=detect, inputs=input, outputs="text",
|
45 |
iface.launch(inline=False)
|
|
|
33 |
os.system("tar -zxvf examples.tar.gz")
|
34 |
|
35 |
|
36 |
+
input = gr.inputs.Image(shape=(100, 100))
|
37 |
+
|
38 |
|
|
|
|
|
|
|
39 |
|
40 |
title = "PneumoDetect: Pneumonia Detection from Chest X-Rays"
|
41 |
|
42 |
+
iface = gr.Interface(fn=detect, inputs=input, outputs="text", examples_per_page=20, title=title)
|
43 |
iface.launch(inline=False)
|