Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,8 @@ def detect(img):
|
|
26 |
# result = detect(img)
|
27 |
# print(result)
|
28 |
os.system("tar -zxvf examples.tar.gz")
|
29 |
-
|
|
|
30 |
|
31 |
input = gr.inputs.Image(shape=(100,100))
|
32 |
|
@@ -34,5 +35,5 @@ input = gr.inputs.Image(shape=(100,100))
|
|
34 |
|
35 |
title = "PneumoDetect: Pneumonia Detection from Chest X-Rays"
|
36 |
|
37 |
-
iface = gr.Interface(fn=detect, inputs=input, outputs="text", examples_per_page=20, title=title)
|
38 |
iface.launch(inline=False)
|
|
|
26 |
# result = detect(img)
|
27 |
# print(result)
|
28 |
os.system("tar -zxvf examples.tar.gz")
|
29 |
+
examples = ['examples/n1.jpeg', 'examples/n2.jpeg', 'examples/n3.jpeg', 'examples/n4.jpeg', 'examples/n5.jpeg',
|
30 |
+
'examples/n6.jpeg', 'examples/n7.jpeg', 'examples/n8.jpeg', 'examples/p6.jpeg', 'examples/p7.jpeg',]
|
31 |
|
32 |
input = gr.inputs.Image(shape=(100,100))
|
33 |
|
|
|
35 |
|
36 |
title = "PneumoDetect: Pneumonia Detection from Chest X-Rays"
|
37 |
|
38 |
+
iface = gr.Interface(fn=detect, inputs=input, outputs="text",examples = examples examples_per_page=20, title=title)
|
39 |
iface.launch(inline=False)
|